drm/bridge-connector: select DRM_DISPLAY_HELPER from DRM_BRIDGE_CONNECTOR
Subsystems (2)
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 byparallel-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.
--- drivers/gpu/drm/display/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/display/Kconfig +3 -2
@@ -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
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_initQuoted 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 byparallel-display.c
drivers/gpu/drm/imx/ipuv3/parallel-display.o:(imx_pd_bind) in archive vmlinux.a
Quoted 5 lines
Move
DRM_BRIDGE_CONNECTORout of theDRM_DISPLAY_HELPERblock and instead select that symbol indirectly.Fixes f94b9707a1c9 ("drm/imx: parallel-display: switch to imx_legacy_bridge / drm_bridge_connector")Signed-off-by Arnd Bergmann <[email protected]>
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@@ -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_HELPERSignature · 1 line
2.39.5
Signature · 2 lines
With best wishes Dmitry
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_initQuoted 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 byparallel-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_CONNECTORout of theDRM_DISPLAY_HELPERblock and instead select that symbol indirectly.Fixes f94b9707a1c9 ("drm/imx: parallel-display: switch to imx_legacy_bridge / drm_bridge_connector")Signed-off-by Arnd Bergmann <[email protected]>I think a correct fix is to select
DRM_DISPLAY_HELPERinstead.
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_CONNECTORdrivers/gpu/drm/display/Kconfig +1
-0bool 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
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_initQuoted 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 byparallel-display.c
drivers/gpu/drm/imx/ipuv3/parallel-display.o:(imx_pd_bind) in archive vmlinux.aQuoted 7 lines
Quoted 5 lines
Move
DRM_BRIDGE_CONNECTORout of theDRM_DISPLAY_HELPERblock and instead select that symbol indirectly.Fixes f94b9707a1c9 ("drm/imx: parallel-display: switch to imx_legacy_bridge / drm_bridge_connector")Signed-off-by Arnd Bergmann <[email protected]>I think a correct fix is to select
DRM_DISPLAY_HELPERinstead.I think I just didn't express that clearly enough, selecting
DRM_DISPLAY_HELPERis 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_CONNECTORdrivers/gpu/drm/display/Kconfig +1
-0bool 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