Skip to contentSkip to conversation

drm/bridge-connector: select DRM_DISPLAY_HELPER from DRM_BRIDGE_CONNECTOR

PATCH In review Arnd Bergmann 3 participants 4 messages Oct 18, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/bridge-connector: select DRM_DISPLAY_HELPER from DRM_BRIDGE_CONNECTOR

From: Arnd Bergmann <[email protected]>

The imx display drivers use the new bridge connector helpers but don't explicitly select CONFIG_DRM_DISPLAY_HELPER, leading to a link failure in rare configurations:

ld.lld-20: error: undefined symbol: drm_bridge_connector_init

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

referenced by imx-ldb.c
drivers/gpu/drm/imx/ipuv3/imx-ldb.o:(imx_ldb_bind) in archive vmlinux.a
referenced by parallel-display.c
drivers/gpu/drm/imx/ipuv3/parallel-display.o:(imx_pd_bind) in archive vmlinux.a

Move DRM_BRIDGE_CONNECTOR out of the DRM_DISPLAY_HELPER block and instead select that symbol indirectly.

Fixes f94b9707a1c9 ("drm/imx: parallel-display: switch to imx_legacy_bridge / drm_bridge_connector")
---
 drivers/gpu/drm/display/Kconfig | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/display/Kconfig +3 -2
index 0f07cf1483ff..beb05d9bab50 100644
@@ -11,14 +11,15 @@ config DRM_DISPLAY_HELPER
 	help
 	  DRM helpers for display adapters.
 
-if DRM_DISPLAY_HELPER
-
 config DRM_BRIDGE_CONNECTOR
 	bool
 	select DRM_DISPLAY_HDMI_STATE_HELPER
+	select DRM_DISPLAY_HELPER
 	help
 	  DRM connector implementation terminating DRM bridge chains.
 
+if DRM_DISPLAY_HELPER
+
 config DRM_DISPLAY_DP_AUX_CEC
 	bool "Enable DisplayPort CEC-Tunneling-over-AUX HDMI support"
 	select DRM_DISPLAY_DP_HELPER
Signature · 1 line
2.39.5
#1 lore raw
Quoted 12 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The imx display drivers use the new bridge connector helpers but don't explicitly select CONFIG_DRM_DISPLAY_HELPER, leading to a link failure in rare configurations:

ld.lld-20: error: undefined symbol: drm_bridge_connector_init

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

referenced by imx-ldb.c
drivers/gpu/drm/imx/ipuv3/imx-ldb.o:(imx_ldb_bind) in archive vmlinux.a
referenced by parallel-display.c
drivers/gpu/drm/imx/ipuv3/parallel-display.o:(imx_pd_bind) in archive vmlinux.a

Quoted 5 lines

Move DRM_BRIDGE_CONNECTOR out of the DRM_DISPLAY_HELPER block and instead select that symbol indirectly.

Fixes f94b9707a1c9 ("drm/imx: parallel-display: switch to imx_legacy_bridge / drm_bridge_connector")

I think a correct fix is to select DRM_DISPLAY_HELPER instead.

Quoted 29 lines
---
 drivers/gpu/drm/display/Kconfig | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/display/Kconfig +3 -2
index 0f07cf1483ff..beb05d9bab50 100644
@@ -11,14 +11,15 @@ config DRM_DISPLAY_HELPER
 	help
 	  DRM helpers for display adapters.
 
-if DRM_DISPLAY_HELPER
-
 config DRM_BRIDGE_CONNECTOR
 	bool
 	select DRM_DISPLAY_HDMI_STATE_HELPER
+	select DRM_DISPLAY_HELPER
 	help
 	  DRM connector implementation terminating DRM bridge chains.
 
+if DRM_DISPLAY_HELPER
+
 config DRM_DISPLAY_DP_AUX_CEC
 	bool "Enable DisplayPort CEC-Tunneling-over-AUX HDMI support"
 	select DRM_DISPLAY_DP_HELPER
Signature · 1 line
2.39.5
Signature · 2 lines
With best wishes
Dmitry
#2 lore raw
Quoted 13 lines · Dmitry Baryshkov
Quoted 12 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The imx display drivers use the new bridge connector helpers but don't explicitly select CONFIG_DRM_DISPLAY_HELPER, leading to a link failure in rare configurations:

ld.lld-20: error: undefined symbol: drm_bridge_connector_init

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

referenced by imx-ldb.c
drivers/gpu/drm/imx/ipuv3/imx-ldb.o:(imx_ldb_bind) in archive vmlinux.a
referenced by parallel-display.c
drivers/gpu/drm/imx/ipuv3/parallel-display.o:(imx_pd_bind) in archive vmlinux.a

Quoted 7 lines
Quoted 5 lines

Move DRM_BRIDGE_CONNECTOR out of the DRM_DISPLAY_HELPER block and instead select that symbol indirectly.

Fixes f94b9707a1c9 ("drm/imx: parallel-display: switch to imx_legacy_bridge / drm_bridge_connector")

I think a correct fix is to select DRM_DISPLAY_HELPER instead.

I think I just didn't express that clearly enough, selecting DRM_DISPLAY_HELPER is what I did and what I tried to explain:

Quoted 6 lines

drivers/gpu/drm/display/Kconfig config DRM_DISPLAY_HELPER · line 19

Quoted 6 lines

config DRM_BRIDGE_CONNECTOR

drivers/gpu/drm/display/Kconfig +1 -0
 	bool
 	select DRM_DISPLAY_HDMI_STATE_HELPER
+	select DRM_DISPLAY_HELPER
 	help
 	  DRM connector implementation terminating DRM bridge chains.

I had to move the 'if' block just to avoid a circular dependency.

Or did you mean the imx driver is the one that should 'select DRM_DISPLAY_HELPER'? That would also work, but adds a bit more complexity.

Arnd

#3 lore raw
Quoted 35 lines · Arnd Bergmann
Quoted 13 lines · Dmitry Baryshkov
Quoted 12 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The imx display drivers use the new bridge connector helpers but don't explicitly select CONFIG_DRM_DISPLAY_HELPER, leading to a link failure in rare configurations:

ld.lld-20: error: undefined symbol: drm_bridge_connector_init

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

referenced by imx-ldb.c
drivers/gpu/drm/imx/ipuv3/imx-ldb.o:(imx_ldb_bind) in archive vmlinux.a
referenced by parallel-display.c
drivers/gpu/drm/imx/ipuv3/parallel-display.o:(imx_pd_bind) in archive vmlinux.a

Quoted 7 lines
Quoted 5 lines

Move DRM_BRIDGE_CONNECTOR out of the DRM_DISPLAY_HELPER block and instead select that symbol indirectly.

Fixes f94b9707a1c9 ("drm/imx: parallel-display: switch to imx_legacy_bridge / drm_bridge_connector")

I think a correct fix is to select DRM_DISPLAY_HELPER instead.

I think I just didn't express that clearly enough, selecting DRM_DISPLAY_HELPER is what I did and what I tried to explain:

Quoted 6 lines

drivers/gpu/drm/display/Kconfig config DRM_DISPLAY_HELPER · line 19

Quoted 6 lines

config DRM_BRIDGE_CONNECTOR

drivers/gpu/drm/display/Kconfig +1 -0
 	bool
 	select DRM_DISPLAY_HDMI_STATE_HELPER
+	select DRM_DISPLAY_HELPER
 	help
 	  DRM connector implementation terminating DRM bridge chains.

I had to move the 'if' block just to avoid a circular dependency.

Quoted 3 lines

Or did you mean the imx driver is the one that should 'select DRM_DISPLAY_HELPER'? That would also work, but adds a bit more complexity.

Yes, I proposed this solution. I think this is what other drivers do.

Signature · 2 lines
With best wishes
Dmitry