]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/bridge: cdns-dsi: Select VIDEOMODE_HELPERS
authorNathan Chancellor <nathan@kernel.org>
Thu, 21 Aug 2025 20:52:12 +0000 (13:52 -0700)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Thu, 4 Sep 2025 20:25:58 +0000 (23:25 +0300)
When no other driver selects CONFIG_VIDEOMODE_HELPERS but
CONFIG_DRM_CDNS_DSI is enabled, there is a linker or modpost error:

  ERROR: modpost: "drm_display_mode_to_videomode" [drivers/gpu/drm/bridge/cadence/cdns-dsi.ko] undefined!

Select VIDEOMODE_HELPERS to ensure that this helper function is
available to the driver.

Fixes: ce4bc5ca7c1d ("drm/bridge: cdns-dsi: Use video mode and clean up cdns_dsi_mode2cfg()")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250821-cdns-videohelpers-v1-1-853e021908cf@kernel.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/bridge/cadence/Kconfig

index cced81633ddcda03d89946e10684727887b3e792..f1d8a8a151d84a46e497a5679e64e9c88ba55f75 100644 (file)
@@ -6,6 +6,7 @@ config DRM_CDNS_DSI
        select DRM_PANEL_BRIDGE
        select GENERIC_PHY
        select GENERIC_PHY_MIPI_DPHY
+       select VIDEOMODE_HELPERS
        depends on OF
        help
          Support Cadence DPI to DSI bridge. This is an internal