Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp622643rwb; Wed, 9 Nov 2022 06:52:45 -0800 (PST) X-Google-Smtp-Source: AMsMyM6UDweY4RYZTGrt9CKCnMtpwQVszdiV8akwuEpbCPIX+yfW/euDCvGFQfoFrlookIcxEzwF X-Received: by 2002:a17:906:154f:b0:7ac:2e16:bc31 with SMTP id c15-20020a170906154f00b007ac2e16bc31mr1153163ejd.242.1668005565348; Wed, 09 Nov 2022 06:52:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668005565; cv=none; d=google.com; s=arc-20160816; b=D7sRLQmeVs+oOcUu+c+/Nb29Uol7BFyZxbid1DubfAkrrpxXaRAsmUuwJ2z8X5YqQ3 Tm5U9XgtuaInRpzzKhARWfuk3SFV796CoOz3b5UU5GkKBBeHtW14p+0eVoFLW2ir0uVE QSaDK+ov3X0X5qMwfUi7zAY/3wdqtO6PGh1qm0LRpq19mXQGm4sV/efKeAGZT3Z53dSg fneF6Bp7OjfUvKHs1fS4/gUVgdYwVwm31JAGi2Qi5v0aCK5X5YyffJuZhGsBuaF5jzYR xaHtB2Mk1lFOFDBWhXAXNKS9yx5FsonVvi/6hg6ghy6t2Apyoo30bEHtlmMkRGHDuzsp COow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zclBDx6zhpY8Dts/mqj0Xq6qpuJNr+jV9dL1zMYaHwo=; b=O+MWUEvofcjumuTkxwWcyFBbWqs0KmoeDkGQfqjIgYe2cttWnSGnzf/dTkkyFpKb8X RvqpftWvTbzV8JAgF710cEg/zg9xcYFF0YZxQNcP2F3aSYXpzQAolZlxBtY8WhWQwS2Q sYZZKkiBCwRy04bEkV+akkrSb2kkvCb55C6Z7h5Rvfyw/L36yXwlp2f6wPKsNbRxbZVg jtHsVF0ut0rEVP706ih2YvDPp+IVnclkXbo7Z2IlDQePHHiCVUU1aEPSsA886POMNqc8 EL8OO6bGbwnrKrT9awYDEdmMN2EH6faJsneQkzJYJ3ithzin2v81VEJRDRSZRNd8Cu3+ d51A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ffO7kK8R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v12-20020a056402348c00b0045807f73ad5si18149601edc.570.2022.11.09.06.52.23; Wed, 09 Nov 2022 06:52:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ffO7kK8R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230453AbiKIOMG (ORCPT + 92 others); Wed, 9 Nov 2022 09:12:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230399AbiKIOMB (ORCPT ); Wed, 9 Nov 2022 09:12:01 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8486C1902A; Wed, 9 Nov 2022 06:12:00 -0800 (PST) Received: from pendragon.ideasonboard.com (117.145-247-81.adsl-dyn.isp.belgacom.be [81.247.145.117]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 72203896; Wed, 9 Nov 2022 15:11:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1668003118; bh=AffXHvdxCHZjAgL7Z9CuecNf9qFUAfZCnvn/pjOY1HI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ffO7kK8Rx6z7y+oG64svjLUW+zCTHx5u6OuAQWUNDNScvBrY+gsleyDUUKvX5cVlU MYt4pd0CSIBLUj/vKUJDjGj0sKb0upFIGDhRskNM1cu9kAqM/N32bDqJVdOAqDNy4V /xJCHiPiC2LrEHsSevkMndX19TGYcsZlQlCZ2C0w= Date: Wed, 9 Nov 2022 16:11:39 +0200 From: Laurent Pinchart To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, Tomi Valkeinen , Kieran Bingham , LUU HOAI , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, David Airlie , Daniel Vetter Subject: Re: [PATCH] drm: rcar_du: DRM_RCAR_DU optionally depends on RCAR_MIPI_DSI Message-ID: References: <20221018181828.19528-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221018181828.19528-1-rdunlap@infradead.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy, Thank you for the patch. On Tue, Oct 18, 2022 at 11:18:28AM -0700, Randy Dunlap wrote: > When CONFIG_DRM_RCAR_DU=y and CONFIG_DRM_RCAR_MIPI_DSI=m, calls > from the builtin driver to the mipi driver fail due to linker > errors. > Since the RCAR_MIPI_DSI driver is not always required, fix the > build error by making DRM_RCAR_DU optionally depend on the > RCAR_MIPI_DSI Kconfig symbol. This prevents the problematic > kconfig combination without requiring that RCAR_MIPI_DSI always > be enabled. > > aarch64-linux-ld: drivers/gpu/drm/rcar-du/rcar_du_crtc.o: in function `rcar_du_crtc_atomic_enable': > rcar_du_crtc.c:(.text+0x3a18): undefined reference to `rcar_mipi_dsi_pclk_enable' > aarch64-linux-ld: drivers/gpu/drm/rcar-du/rcar_du_crtc.o: in function `rcar_du_crtc_atomic_disable': > rcar_du_crtc.c:(.text+0x47cc): undefined reference to `rcar_mipi_dsi_pclk_disable' I've already posted a fix, see https://lore.kernel.org/dri-devel/20221001220342.5828-1-laurent.pinchart+renesas@ideasonboard.com/ It aligns with how the LVDS encoder driver is handled, so I would prefer that. I will send a pull request shortly, as a v6.1 fix. > Fixes: 957fe62d7d15 ("drm: rcar-du: Fix DSI enable & disable sequence") > Signed-off-by: Randy Dunlap > Cc: Tomi Valkeinen > Cc: Laurent Pinchart > Cc: Kieran Bingham > Cc: LUU HOAI > Cc: dri-devel@lists.freedesktop.org > Cc: linux-renesas-soc@vger.kernel.org > Cc: David Airlie > Cc: Daniel Vetter > --- > drivers/gpu/drm/rcar-du/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff -- a/drivers/gpu/drm/rcar-du/Kconfig b/drivers/gpu/drm/rcar-du/Kconfig > --- a/drivers/gpu/drm/rcar-du/Kconfig > +++ b/drivers/gpu/drm/rcar-du/Kconfig > @@ -4,6 +4,7 @@ config DRM_RCAR_DU > depends on DRM && OF > depends on ARM || ARM64 > depends on ARCH_RENESAS || COMPILE_TEST > + depends on DRM_RCAR_MIPI_DSI || DRM_RCAR_MIPI_DSI=n > select DRM_KMS_HELPER > select DRM_GEM_DMA_HELPER > select VIDEOMODE_HELPERS -- Regards, Laurent Pinchart