All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: rcar-du: DRM_RCAR_DU optionally depends on DRM_RCAR_MIPI_DSI
@ 2022-11-09  1:09 Yu Liao
  0 siblings, 0 replies; only message in thread
From: Yu Liao @ 2022-11-09  1:09 UTC (permalink / raw)
  To: airlied, daniel, tomi.valkeinen+renesas
  Cc: liwei391, linux-renesas-soc, liaoyu15

If DRM_RCAR_MIPI_DSI is enabled, then DRM_RCAR_DU should depend on
DRM_RCAR_MIPI_DSI to prevent DRM_RCAR_MIPI_DSI=m and DRM_RCAR_DU=y,
which causes build errors:

aarch64-linux-ld: drivers/gpu/drm/rcar-du/rcar_du_crtc.o: in function `rcar_du_crtc_atomic_enable':
drivers/gpu/drm/rcar-du/rcar_du_crtc.c:760: 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':
drivers/gpu/drm/rcar-du/rcar_du_crtc.c:806: undefined reference to `rcar_mipi_dsi_pclk_disable'

Fixes: 957fe62d7d15 ("drm: rcar-du: Fix DSI enable & disable sequence")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Yu Liao <liaoyu15@huawei.com>
---
 drivers/gpu/drm/rcar-du/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/rcar-du/Kconfig b/drivers/gpu/drm/rcar-du/Kconfig
index c959e8c6be7d..b256ff962893 100644
--- 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
-- 
2.25.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-09  1:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-09  1:09 [PATCH] drm: rcar-du: DRM_RCAR_DU optionally depends on DRM_RCAR_MIPI_DSI Yu Liao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.