Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6397748rwi; Tue, 18 Oct 2022 11:51:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4YuNwrohWQCLDqB7TGh6K2ar8yeyAM3fXkLi7/OyPpga/7k6rOXFJ8IyepsAvrMcYYPIxJ X-Received: by 2002:a17:907:2c4f:b0:78d:eebe:f413 with SMTP id hf15-20020a1709072c4f00b0078deebef413mr3610835ejc.221.1666119107867; Tue, 18 Oct 2022 11:51:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666119107; cv=none; d=google.com; s=arc-20160816; b=dAQvx7q5mNSZcCt2dL9+SqmsRo5YzdtJRtDqRpJzO7ARB2WJ7vM9ElZVvjXZN2cWLO RnbIkVA2A0pzHAKlljnr3CfUeR1QGD6ZLahqM2tL3FUkFvwtaNWxuT4YZHuuLYv/jHhf f4msWDVkoWnBoSQZjCzdH+4FBKkf2OevsRRrLKlR8zUv9/TyqL/DHl1bU89+9Plkdjxd QGp2xFOXWyRxkV5sQUGQNAy9RkOheTOQ7khhyCuIe7gwAjZJpAHtLYVs6UVddKTfuShr ivL76iDenwYj2j1k+/kCl9GS9yyd47XrAIl6rVCx432EzVnZE74sUZ6SnUxbgk06xdTs p9oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=u1jSsa7KqxmCrkOFvnCR72ZfQLGaAXjkoUkUU1lr3G8=; b=U8DDt0/1B8pZ5bwgA6WKBrqdeAr0V1juiOQzz+a8k/GvY7V30roQp0dbw5tdZO5s9L VW17Sl7lRNiI5S+3OgR5NXtEaXvoyHOozwYDa/GNoUCDwcY4gEjiLnB9Miw6nh83IywT 4jt9aOVx7jgouIvl9EOOFEQT3NHz4vxDMhVATW+Ec4p+JE+uygo5CTSsK3TBjqAb0ljF C5Vu/CgPGUxaOaAmHRnNc6JavNPr+05TrcbKi0qL31qoU3GXm+NO0TJkiCmV/peKCvEr YxxtU+eLM0YgKliSKN9iQqsGTmEpknwTASQ8ED/WgnZ8QJChvNnthJ4cFKAIL7kHBLoM qAkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=KJi6nSw4; 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 o30-20020a509b1e000000b0045a2d9130bdsi11790958edi.457.2022.10.18.11.51.22; Tue, 18 Oct 2022 11:51:47 -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 header.i=@infradead.org header.s=casper.20170209 header.b=KJi6nSw4; 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 S229975AbiJRSSo (ORCPT + 99 others); Tue, 18 Oct 2022 14:18:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229846AbiJRSSm (ORCPT ); Tue, 18 Oct 2022 14:18:42 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91DE180F4E; Tue, 18 Oct 2022 11:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=u1jSsa7KqxmCrkOFvnCR72ZfQLGaAXjkoUkUU1lr3G8=; b=KJi6nSw4Ag2zEO7s5ov0ONErxv fGEmJ9nNV38vIpdnD8BPWG8CEY/cFTNQ8G2Lyt0q3Qbn+JcyFAkEC09BjAGh6JLQhmm31W0Vidb2g rqe1daF/U/g1Z+D1X9f3jelTyP8XHMVgd5h1qDpf2MfEbDsA2KLSx4LVt9VS8nwBNmRo5DE/2F2uL xNS8KFJtysjer8qzcMw8dcB1va8LBi45n2sSKJF3f142famaY51K9ky6UgVOxVAyZ6AMI6PkF4whT +kGGGTsmnq9BOab4VZofipUqypVmeZcDzWICjJ951bpTSx9B27+EqObVuANkLjFczLufynTP+vXxH dOcDlTYw==; Received: from [2601:1c2:d80:3110::a2e7] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1okrAk-00AvHD-HN; Tue, 18 Oct 2022 18:18:40 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Tomi Valkeinen , Laurent Pinchart , Kieran Bingham , LUU HOAI , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, David Airlie , Daniel Vetter Subject: [PATCH] drm: rcar_du: DRM_RCAR_DU optionally depends on RCAR_MIPI_DSI Date: Tue, 18 Oct 2022 11:18:28 -0700 Message-Id: <20221018181828.19528-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 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' 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