drm/bridge/sii8620: fix dependency on extcon
Subsystems (3)
PATCH v2 1/1 drm/bridge/sii8620: fix dependency on extcon
The DRM_SIL_SII8620 kconfig has a weak imply dependency on EXTCON, which causes issues when sii8620 is built as a builtin and EXTCON is built as a module.
The symptoms are 'undefined reference' errors caused by the symbols in EXTCON not being available to the sii8620 driver.
---
Changes since v1:
- Fix typo on comment
drivers/gpu/drm/bridge/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/Kconfig +1 -1
@@ -169,7 +169,7 @@ config DRM_SIL_SII8620 tristate "Silicon Image SII8620 HDMI/MHL bridge" depends on OF select DRM_KMS_HELPER - imply EXTCON + depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in depends on RC_CORE || !RC_CORE help Silicon Image SII8620 HDMI/MHL bridge chip driver.
Signature · 6 lines
2.31.0.30.g398dba342d.dirty _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 24 lines · Robert Foss
The
DRM_SIL_SII8620kconfig has a weakimplydependency on EXTCON, which causes issues when sii8620 is built as a builtin and EXTCON is built as a module.The symptoms are 'undefined reference' errors caused by the symbols in EXTCON not being available to the sii8620 driver.
Signed-off-by Robert Foss <[email protected]>Reported-by kernel test robot <[email protected]>---
Changes since v1:
- Fix typo on commentdrivers/gpu/drm/bridge/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/bridge/Kconfig +0
-0
drivers/gpu/drm/bridge/Kconfig config DRM_SIL_SII8620 · line 175
Quoted 8 lines
drivers/gpu/drm/bridge/Kconfig +1
-1@@ -169,7 +169,7 @@ config DRM_SIL_SII8620 tristate "Silicon Image SII8620 HDMI/MHL bridge" depends on OF select DRM_KMS_HELPER - imply EXTCON + depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in depends on RC_CORE || !RC_CORE help Silicon Image SII8620 HDMI/MHL bridge chip driver.
That gives me: (on linux-next 20210409)
drivers/gpu/drm/Kconfig:77:error: recursive dependency detected!drivers/gpu/drm/Kconfig:77: symbol DRM_KMS_HELPER is selected by DRM_SIL_SII8620drivers/gpu/drm/bridge/Kconfig:168: symbol DRM_SIL_SII8620 depends on EXTCONdrivers/extcon/Kconfig:2: symbol EXTCON is selected by CHARGER_MANAGERdrivers/power/supply/Kconfig:499: symbol CHARGER_MANAGER depends on POWER_SUPPLYdrivers/power/supply/Kconfig:2: symbol POWER_SUPPLY is selected by OLPC_XO1_SCIarch/x86/Kconfig:2757: symbol OLPC_XO1_SCI depends on GPIO_CS5535drivers/gpio/Kconfig:1156: symbol GPIO_CS5535 depends on GPIOLIBdrivers/gpio/Kconfig:14: symbol GPIOLIB is selected by I2C_MUX_LTC4306drivers/i2c/muxes/Kconfig:47: symbol I2C_MUX_LTC4306 depends on I2Cdrivers/i2c/Kconfig:8: symbol I2C is selected by FB_DDCdrivers/video/fbdev/Kconfig:63: symbol FB_DDC depends on FBdrivers/video/fbdev/Kconfig:12: symbol FB is selected by DRM_KMS_FB_HELPERdrivers/gpu/drm/Kconfig:83: symbol DRM_KMS_FB_HELPER depends on DRM_KMS_HELPER
For a resolution refer to Documentation/kbuild/kconfig-language.rst subsection "Kconfig recursive dependency limitations"
Signature · 6 lines
~Randy _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hey Randy,
Thanks for looking at this!
Quoted 47 lines · Randy Dunlap
Quoted 24 lines · Robert Foss
The
DRM_SIL_SII8620kconfig has a weakimplydependency on EXTCON, which causes issues when sii8620 is built as a builtin and EXTCON is built as a module.The symptoms are 'undefined reference' errors caused by the symbols in EXTCON not being available to the sii8620 driver.
Signed-off-by Robert Foss <[email protected]>Reported-by kernel test robot <[email protected]>---
Changes since v1:
- Fix typo on commentdrivers/gpu/drm/bridge/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/bridge/Kconfig +0
-0drivers/gpu/drm/bridge/Kconfig config DRM_SIL_SII8620 · line 175
Quoted 8 lines
drivers/gpu/drm/bridge/Kconfig +1
-1@@ -169,7 +169,7 @@ config DRM_SIL_SII8620 tristate "Silicon Image SII8620 HDMI/MHL bridge" depends on OF select DRM_KMS_HELPER - imply EXTCON + depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in depends on RC_CORE || !RC_CORE help Silicon Image SII8620 HDMI/MHL bridge chip driver.That gives me: (on linux-next 20210409)
drivers/gpu/drm/Kconfig:77:error: recursive dependency detected!
drivers/gpu/drm/Kconfig:77: symbolDRM_KMS_HELPERis selected byDRM_SIL_SII8620drivers/gpu/drm/bridge/Kconfig:168: symbolDRM_SIL_SII8620depends on EXTCONdrivers/extcon/Kconfig:2: symbol EXTCON is selected byCHARGER_MANAGERdrivers/power/supply/Kconfig:499: symbolCHARGER_MANAGERdepends onPOWER_SUPPLYdrivers/power/supply/Kconfig:2: symbolPOWER_SUPPLYis selected byOLPC_XO1_SCIarch/x86/Kconfig:2757: symbolOLPC_XO1_SCIdepends onGPIO_CS5535drivers/gpio/Kconfig:1156: symbol GPIO_CS5535 depends on GPIOLIB drivers/gpio/Kconfig:14: symbol GPIOLIB is selected by I2C_MUX_LTC4306 drivers/i2c/muxes/Kconfig:47: symbol I2C_MUX_LTC4306 depends on I2C
Quoted 6 lines
drivers/i2c/Kconfig:8: symbol I2C is selected byFB_DDCdrivers/video/fbdev/Kconfig:63: symbolFB_DDCdepends on FBdrivers/video/fbdev/Kconfig:12: symbol FB is selected byDRM_KMS_FB_HELPERdrivers/gpu/drm/Kconfig:83: symbolDRM_KMS_FB_HELPERdepends onDRM_KMS_HELPER
For a resolution refer toDocumentation/kbuild/kconfig-language.rstsubsection "Kconfigrecursive dependency limitations"
I'm not sure how to avoid this circular dependency. The above solution is what I've seen w/r to issues like [1]. Clearly it doesn't work in this situation. select EXTCON doesn't seem to cause this dependency error, but I'm not sure it accurately represents the dependency sii8620 has on extcon.
[1] https://lore.kernel.org/lkml/[email protected]/
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel