drm/bridge: tc358764: Fix build error
Subsystems (3)
PATCH 1/1 drm/bridge: tc358764: Fix build error
If CONFIG_DRM_TOSHIBA_TC358764=y but CONFIG_DRM_KMS_HELPER=m, building fails:
drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x228): undefined reference to drm_atomic_helper_connector_reset' drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x240): undefined reference to drm_helper_probe_single_connector_modes' drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x268): undefined reference to drm_atomic_helper_connector_duplicate_state' drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x270): undefined reference to drm_atomic_helper_connector_destroy_state'
Like TC358767, select DRM_KMS_HELPER to fix this, and change to select DRM_PANEL to avoid recursive dependency.
--- drivers/gpu/drm/bridge/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/bridge/Kconfig +2 -1
@@ -116,9 +116,10 @@ config DRM_THINE_THC63LVD1024 config DRM_TOSHIBA_TC358764 tristate "TC358764 DSI/LVDS bridge" - depends on DRM && DRM_PANEL depends on OF select DRM_MIPI_DSI + select DRM_KMS_HELPER + select DRM_PANEL help Toshiba TC358764 DSI/LVDS bridge driver.
Signature · 1 line
2.7.4
Hi Yue,
Thank you for the patch.
Quoted 8 lines · YueHaibing
If
CONFIG_DRM_TOSHIBA_TC358764=ybutCONFIG_DRM_KMS_HELPER=m, building fails:drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x228): undefined reference to
drm_atomic_helper_connector_reset' drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x240): undefined reference todrm_helper_probe_single_connector_modes' drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x268): undefined reference todrm_atomic_helper_connector_duplicate_state' drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x270): undefined reference todrm_atomic_helper_connector_destroy_state'
Quoted 6 lines
Like TC358767, select
DRM_KMS_HELPERto fix this, and change to selectDRM_PANELto avoid recursive dependency.Reported-by Hulk Robot <[email protected]>Fixes f38b7cca6d0e ("drm/bridge: tc358764: Add DSI to LVDS bridge driver")Signed-off-by YueHaibing <[email protected]>
Quoted 20 lines
--- drivers/gpu/drm/bridge/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/bridge/Kconfig +2
-1@@ -116,9 +116,10 @@ config DRM_THINE_THC63LVD1024 config DRM_TOSHIBA_TC358764 tristate "TC358764 DSI/LVDS bridge" - depends on DRM && DRM_PANEL depends on OF select DRM_MIPI_DSI + select DRM_KMS_HELPER + select DRM_PANEL help Toshiba TC358764 DSI/LVDS bridge driver.
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 25 lines · YueHaibing
If
CONFIG_DRM_TOSHIBA_TC358764=ybutCONFIG_DRM_KMS_HELPER=m, building fails:drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x228): undefined reference to
drm_atomic_helper_connector_reset' drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x240): undefined reference todrm_helper_probe_single_connector_modes' drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x268): undefined reference todrm_atomic_helper_connector_duplicate_state' drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x270): undefined reference todrm_atomic_helper_connector_destroy_state'Like TC358767, select
DRM_KMS_HELPERto fix this, and change to selectDRM_PANELto avoid recursive dependency.Reported-by Hulk Robot <[email protected]>Fixes f38b7cca6d0e ("drm/bridge: tc358764: Add DSI to LVDS bridge driver")Signed-off-by YueHaibing <[email protected]>--- drivers/gpu/drm/bridge/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/bridge/Kconfig +0
-0@@ -116,9 +116,10 @@ config DRM_THINE_THC63LVD1024
drivers/gpu/drm/bridge/Kconfig config DRM_THINE_THC63LVD1024 · line 125
Quoted 10 lines
drivers/gpu/drm/bridge/Kconfig +2
-1config DRM_TOSHIBA_TC358764 tristate "TC358764 DSI/LVDS bridge" - depends on DRM && DRM_PANEL depends on OF select DRM_MIPI_DSI + select DRM_KMS_HELPER + select DRM_PANEL help Toshiba TC358764 DSI/LVDS bridge driver.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 25 lines · Neil Armstrong
Quoted 24 lines · YueHaibing
If
CONFIG_DRM_TOSHIBA_TC358764=ybutCONFIG_DRM_KMS_HELPER=m, building fails:drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x228): undefined reference to
drm_atomic_helper_connector_reset' drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x240): undefined reference todrm_helper_probe_single_connector_modes' drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x268): undefined reference todrm_atomic_helper_connector_duplicate_state' drivers/gpu/drm/bridge/tc358764.o:(.rodata+0x270): undefined reference todrm_atomic_helper_connector_destroy_state'Like TC358767, select
DRM_KMS_HELPERto fix this, and change to selectDRM_PANELto avoid recursive dependency.Reported-by Hulk Robot <[email protected]>Fixes f38b7cca6d0e ("drm/bridge: tc358764: Add DSI to LVDS bridge driver")Signed-off-by YueHaibing <[email protected]>--- drivers/gpu/drm/bridge/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/bridge/Kconfig +0
-0@@ -116,9 +116,10 @@ config DRM_THINE_THC63LVD1024
Quoted 14 lines
drivers/gpu/drm/bridge/Kconfig config DRM_THINE_THC63LVD1024 · line 125
Quoted 11 lines
drivers/gpu/drm/bridge/Kconfig +2
-1config DRM_TOSHIBA_TC358764 tristate "TC358764 DSI/LVDS bridge" - depends on DRM && DRM_PANEL depends on OF select DRM_MIPI_DSI + select DRM_KMS_HELPER + select DRM_PANEL help Toshiba TC358764 DSI/LVDS bridge driver.Reviewed-by Neil Armstrong <[email protected]>
Applying to drm-misc-fixes
Thanks,
Neil