Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1322561rwi; Thu, 3 Nov 2022 04:04:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4G+atCR4IC8T77sW0Zo2I9aH7zRcV7nltLdIKmPa+cp0ffOPDBlPSl+Q33Cx6C5w8chXpG X-Received: by 2002:a17:90b:1009:b0:213:9716:20b6 with SMTP id gm9-20020a17090b100900b00213971620b6mr29899131pjb.57.1667473491243; Thu, 03 Nov 2022 04:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667473491; cv=none; d=google.com; s=arc-20160816; b=BpYQKFbg7qInxyGn33khLw1J34q+TgkyvMbde8GszB0opfQpNIb1nFmPsDT10DtN9P rFLehT6dlgZNDxpfaWOCXxYuRYWrdj0wF986r6sCgil6yIgs1hiYbeBMJubrrx3XXZKZ Lwe3YVod7Ak9zW3PK+0ZW08BbScAQXs34T/2deYMhTX0g2PIsGssK9wePST4d21RoJlH l7fe0put9t00IlM1M8x+aUM8JwxVfs5oPXD4aZfC2T6cDAdGf26MyF2vUNkwO9txUd6m V5Nx5Sq7TDtgrh1sfStiEMDWjSmwEyqJEKD6IswTL2P1RYyCuQ3lrkvmMS8q5Emh3IX8 knoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=zi4CKHjT24Z85dYzEOWXUhEThRh1LsreZAinbPP3vV0=; b=D8nVKZdKaYMFf4KKvoO66lTttQIWXq+gXZOD34Yib+PjwrqNT7kpXbhJ9cW9qHtTj2 P5f/Y6kyi7C2fQHQIkw1l7ajqidu6nxZ0uVuPBjWvsEAR1LpFJzogpZu0HnKnglMPRGI awTXlQfW0L6Y7Qb9VQCyAP4N0UxdgcVUEo2yB6AH3U5It9JHY00BsHK80YcW0RHnGLK2 62sa+VrHpP6GVRhIDhwXu3fUtMP8y0Ih1DzrAWpvS0MK+hs8MBgu6qL7L6X64RKPYuFp e3I54JZGDCrJV2p3KF5qNxM7dj6axmrLukw00Ceoj7Lz+0E10AdIPyLYS1IPOny7SntP mrrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=k3TMnj4W; 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 r19-20020a63ce53000000b004701139ec1dsi908126pgi.392.2022.11.03.04.04.31; Thu, 03 Nov 2022 04:04:51 -0700 (PDT) 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=k3TMnj4W; 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 S229461AbiKCK7P (ORCPT + 98 others); Thu, 3 Nov 2022 06:59:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbiKCK7K (ORCPT ); Thu, 3 Nov 2022 06:59:10 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E35D2F0E; Thu, 3 Nov 2022 03:59:08 -0700 (PDT) Received: from pendragon.ideasonboard.com (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2DDE4589; Thu, 3 Nov 2022 11:59:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1667473147; bh=fsK27h8kbSA/i0+lhbJgLA1FCVaIX2x7inLddU1g7Bs=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=k3TMnj4WfTAH8YFeBcA6f2is+yng+J1K2iBlUpXeNs2HKa+uQpx8OvT/nbh0elHmA wxBcRZT/F2D9h1wQbgd+CcmjiZVr3+z83eoFCqhbEYUZNLaf8r+MKrwf8JJNW3aNhT HQiqPUB2qyAnAzClPBYfLd2VNpLff/aHTD15ew20= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20221018181828.19528-1-rdunlap@infradead.org> Subject: Re: [PATCH] drm: rcar_du: DRM_RCAR_DU optionally depends on RCAR_MIPI_DSI From: Kieran Bingham Cc: Tomi Valkeinen , Laurent Pinchart , LUU HOAI , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, David Airlie , Daniel Vetter To: Randy Dunlap , linux-kernel@vger.kernel.org Date: Thu, 03 Nov 2022 10:59:04 +0000 Message-ID: <166747314442.3962897.9754510086268412956@Monstersaurus> User-Agent: alot/0.10 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, Quoting Randy Dunlap (2022-11-03 06:06:45) > ping. I have verified (on linux-next-20221103) that this is still needed. > Thanks. >=20 > On 10/18/22 11:18, Randy Dunlap wrote: > > When CONFIG_DRM_RCAR_DU=3Dy and CONFIG_DRM_RCAR_MIPI_DSI=3Dm, 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. > >=20 > > 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_pc= lk_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_pc= lk_disable' > >=20 > > 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(+) > >=20 > > diff -- a/drivers/gpu/drm/rcar-du/Kconfig b/drivers/gpu/drm/rcar-du/Kco= nfig > > --- 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=3Dn Please forgive my ignorance, but I don't understand how this works. Could you explain what this is doing please? I know you've explained above that it fixes it to optionally depend on DRM_RCAR_MIPI_DSI ... but it's not making sense to me. To me - this is saying we depend on DRM_RCAR_MIPI_DSI being enabled, or not being enabled ... ? Which is like saying if (0 || 1) ? I'm guessing I'm missing something obvious :-S -- Kieran > > select DRM_KMS_HELPER > > select DRM_GEM_DMA_HELPER > > select VIDEOMODE_HELPERS >=20 > --=20 > ~Randy