2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/exynos
Arnd Bergmann d1ef8fc18b
drm: fix DRM_DISPLAY_DP_HELPER dependencies
Both the exynos and rockchip drivers ran into link failures after
a Kconfig cleanup:

aarch64-linux-ld: drivers/gpu/drm/exynos/exynos_dp.o: in function `exynos_dp_resume':
exynos_dp.c:(.text+0xc0): undefined reference to `analogix_dp_resume'
aarch64-linux-ld: drivers/gpu/drm/exynos/exynos_dp.o: in function `exynos_dp_suspend':
exynos_dp.c:(.text+0xf4): undefined reference to `analogix_dp_suspend'

x86_64-linux-ld: drivers/gpu/drm/rockchip/cdn-dp-core.o: in function `cdn_dp_connector_mode_valid':
cdn-dp-core.c:(.text+0x13a): undefined reference to `drm_dp_bw_code_to_link_rate'
x86_64-linux-ld: cdn-dp-core.c:(.text+0x148): undefined reference to `drm_dp_bw_code_to_link_rate'
x86_64-linux-ld: drivers/gpu/drm/rockchip/cdn-dp-core.o: in function `cdn_dp_check_link_status':
cdn-dp-core.c:(.text+0x1396): undefined reference to `drm_dp_channel_eq_ok'

In both cases, the problem is that ROCKCHIP_CDN_DP and DRM_EXYNOS_DP
are 'bool' symbols that depend on the the 'tristate' DRM_DISPLAY_HELPER
symbol, but end up not working when the SoC specific part is built-in
but the helper is in a loadable module.

Use the same trick that DRM_ROCKCHIP already uses for the EXTCON
dependency and disallow DP support when it would not work.

Fixes: 0323287de8 ("drm: Switch DRM_DISPLAY_DP_HELPER to depends on")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240404124101.2988099-1-arnd@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
2024-04-04 16:20:57 +02:00
..
exynos7_drm_decon.c drm/exynos: Convert to platform remove callback returning void 2023-12-12 13:06:36 +09:00
exynos5433_drm_decon.c Several fixups 2024-01-25 14:22:15 +10:00
exynos_dp.c drm/exynos: simplify the return value handling in exynos_dp_get_modes() 2024-03-13 10:44:14 +02:00
exynos_drm_crtc.c drm/exynos: fix a possible null-pointer dereference due to data race in exynos_drm_crtc_atomic_disable() 2023-08-08 09:35:11 +09:00
exynos_drm_crtc.h
exynos_drm_dma.c drm/exynos: fix a wrong error checking 2023-12-07 11:51:43 +09:00
exynos_drm_dpi.c drm/exynos: dpi: Change connector type to DPI 2023-12-12 13:06:38 +09:00
exynos_drm_drv.c drm/exynos: Convert to platform remove callback returning void 2023-12-12 13:06:36 +09:00
exynos_drm_drv.h drm/exynos: Remove fb_helper from struct exynos_drm_private 2023-04-17 16:47:55 +09:00
exynos_drm_dsi.c drm: exynos: dsi: Convert to platform remove callback returning void 2023-10-06 08:58:44 +02:00
exynos_drm_fb.c drm/exynos: Implement fbdev emulation as in-kernel client 2023-04-17 16:47:55 +09:00
exynos_drm_fb.h
exynos_drm_fbdev.c fbdev: Use _DMAMEM_ infix for DMA-memory helpers 2023-07-31 20:07:18 +02:00
exynos_drm_fbdev.h drm/exynos: Implement fbdev emulation as in-kernel client 2023-04-17 16:47:55 +09:00
exynos_drm_fimc.c drm/exynos: Convert to platform remove callback returning void 2023-12-12 13:06:36 +09:00
exynos_drm_fimd.c Several fixups 2024-01-25 14:22:15 +10:00
exynos_drm_g2d.c drm/exynos: Convert to platform remove callback returning void 2023-12-12 13:06:36 +09:00
exynos_drm_g2d.h drm/exynos: fix g2d_open/close helper function definitions 2023-05-15 14:10:34 +09:00
exynos_drm_gem.c mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
exynos_drm_gem.h
exynos_drm_gsc.c Several fixups 2024-01-25 14:22:15 +10:00
exynos_drm_ipp.c
exynos_drm_ipp.h
exynos_drm_mic.c drm/exynos: Convert to platform remove callback returning void 2023-12-12 13:06:36 +09:00
exynos_drm_plane.c
exynos_drm_plane.h
exynos_drm_rotator.c drm/exynos: Convert to platform remove callback returning void 2023-12-12 13:06:36 +09:00
exynos_drm_scaler.c drm/exynos: Convert to platform remove callback returning void 2023-12-12 13:06:36 +09:00
exynos_drm_vidi.c drm/exynos: do not return negative values from .get_modes() 2024-03-13 10:44:14 +02:00
exynos_drm_vidi.h
exynos_hdmi.c drm/exynos: do not return negative values from .get_modes() 2024-03-13 10:44:14 +02:00
exynos_mixer.c drm/exynos: Convert to platform remove callback returning void 2023-12-12 13:06:36 +09:00
Kconfig drm: fix DRM_DISPLAY_DP_HELPER dependencies 2024-04-04 16:20:57 +02:00
Makefile
regs-decon7.h
regs-decon5433.h
regs-fimc.h
regs-gsc.h
regs-hdmi.h
regs-mixer.h
regs-rotator.h
regs-scaler.h
regs-vp.h