Skip to contentSkip to conversation

drm: bridge: fix unmet dependency on DRM_KMS_HELPER for DRM_PANEL_BRIDGE

PATCH Superseded Julian Braha 2 participants 5 messages Oct 25, 2021 – Oct 26, 2021

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: bridge: fix unmet dependency on DRM_KMS_HELPER for DRM_PANEL_BRIDGE

When DRM_CHIPONE_ICN6211 is selected, and DRM_KMS_HELPER is not selected, Kbuild gives the following warning:

WARNING: unmet direct dependencies detected for DRM_PANEL_BRIDGE
Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && DRM_KMS_HELPER [=n] Selected by [y]:
- DRM_CHIPONE_ICN6211 [=y] && HAS_IOMEM [=y] && DRM [=y] && DRM_BRIDGE [=y] && OF [=y]

This is because DRM_CHIPONE_ICN6211 selects DRM_PANEL_BRIDGE without depending on or selecting DRM_KMS_HELPER, despite DRM_PANEL_BRIDGE depending on DRM_KMS_HELPER.

This unmet dependency bug was detected by Kismet, a static analysis tool for Kconfig.
Please advise if this is not the appropriate solution.

Fixes ce517f18944e ("drm: bridge: Add Chipone ICN6211 MIPI-DSI to RGB bridge")
---
 drivers/gpu/drm/bridge/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/Kconfig +1 -0
index 431b6e12a81f..a630cb8fd1c8 100644
@@ -30,6 +30,7 @@ config DRM_CDNS_DSI
 config DRM_CHIPONE_ICN6211
 	tristate "Chipone ICN6211 MIPI-DSI/RGB Converter bridge"
 	depends on OF
+  select DRM_KMS_HELPER
 	select DRM_MIPI_DSI
 	select DRM_PANEL_BRIDGE
 	help

--
2.30.2

#1 lore raw

Hi Julian,

Thank you for the patch.

Quoted 8 lines · Julian Braha

When DRM_CHIPONE_ICN6211 is selected, and DRM_KMS_HELPER is not selected, Kbuild gives the following warning:

WARNING: unmet direct dependencies detected for DRM_PANEL_BRIDGE
Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && DRM_KMS_HELPER [=n] Selected by [y]:
- DRM_CHIPONE_ICN6211 [=y] && HAS_IOMEM [=y] && DRM [=y] && DRM_BRIDGE [=y] && OF [=y]

Quoted 7 lines

This is because DRM_CHIPONE_ICN6211 selects DRM_PANEL_BRIDGE without depending on or selecting DRM_KMS_HELPER, despite DRM_PANEL_BRIDGE depending on DRM_KMS_HELPER.

This unmet dependency bug was detected by Kismet, a static analysis tool for Kconfig.
Please advise if this is not the appropriate solution.

Shouldn't DRM_PANEL_BRIDGE select DRM_KMS_HELPER instead of depending on it ?

Quoted 19 lines
Fixes ce517f18944e ("drm: bridge: Add Chipone ICN6211 MIPI-DSI to RGB bridge")
---
 drivers/gpu/drm/bridge/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/Kconfig +1 -0
index 431b6e12a81f..a630cb8fd1c8 100644
@@ -30,6 +30,7 @@ config DRM_CDNS_DSI
 config DRM_CHIPONE_ICN6211
 	tristate "Chipone ICN6211 MIPI-DSI/RGB Converter bridge"
 	depends on OF
+  select DRM_KMS_HELPER
 	select DRM_MIPI_DSI
 	select DRM_PANEL_BRIDGE
 	help
Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw
Quoted 31 lines · EDT you

Hi Julian,

Thank you for the patch.

Quoted 8 lines · Julian Braha

When DRM_CHIPONE_ICN6211 is selected, and DRM_KMS_HELPER is not selected, Kbuild gives the following warning:

WARNING: unmet direct dependencies detected for DRM_PANEL_BRIDGE
Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && DRM_KMS_HELPER [=n] Selected by [y]:
- DRM_CHIPONE_ICN6211 [=y] && HAS_IOMEM [=y] && DRM [=y] && DRM_BRIDGE [=y] && OF [=y]

Quoted 7 lines

This is because DRM_CHIPONE_ICN6211 selects DRM_PANEL_BRIDGE without depending on or selecting DRM_KMS_HELPER, despite DRM_PANEL_BRIDGE depending on DRM_KMS_HELPER.

This unmet dependency bug was detected by Kismet, a static analysis tool for Kconfig.
Please advise if this is not the appropriate solution.

Shouldn't DRM_PANEL_BRIDGE select DRM_KMS_HELPER instead of depending on it ?

Quoted 7 lines
Fixes ce517f18944e ("drm: bridge: Add Chipone ICN6211 MIPI-DSI to RGB bridge")
---
 drivers/gpu/drm/bridge/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 14 lines

drivers/gpu/drm/bridge/Kconfig config DRM_CDNS_DSI · line 36

Quoted 12 lines
drivers/gpu/drm/bridge/Kconfig +1 -0
index 431b6e12a81f..a630cb8fd1c8 100644
@@ -30,6 +30,7 @@ config DRM_CDNS_DSI
 config DRM_CHIPONE_ICN6211
 	tristate "Chipone ICN6211 MIPI-DSI/RGB Converter bridge"
 	depends on OF
+  select DRM_KMS_HELPER
 	select DRM_MIPI_DSI
 	select DRM_PANEL_BRIDGE
 	help

Hi Laurent,

Either a "select" or a "depends" will resolve this issue, but most similar devices in this Kconfig file select DRM_KMS_HELPER. Is there something different about DRM_CHIPONE_ICN6211 that I have missed?

- Julian Braha

#3 lore raw

Hi Julian,

Quoted 43 lines · Julian Braha
Quoted 27 lines · EDT you
Quoted 8 lines · Julian Braha

When DRM_CHIPONE_ICN6211 is selected, and DRM_KMS_HELPER is not selected, Kbuild gives the following warning:

WARNING: unmet direct dependencies detected for DRM_PANEL_BRIDGE
Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && DRM_KMS_HELPER [=n] Selected by [y]:
- DRM_CHIPONE_ICN6211 [=y] && HAS_IOMEM [=y] && DRM [=y] && DRM_BRIDGE [=y] && OF [=y]

Quoted 7 lines

This is because DRM_CHIPONE_ICN6211 selects DRM_PANEL_BRIDGE without depending on or selecting DRM_KMS_HELPER, despite DRM_PANEL_BRIDGE depending on DRM_KMS_HELPER.

This unmet dependency bug was detected by Kismet, a static analysis tool for Kconfig.
Please advise if this is not the appropriate solution.

Shouldn't DRM_PANEL_BRIDGE select DRM_KMS_HELPER instead of depending on it ?

Quoted 7 lines
Fixes ce517f18944e ("drm: bridge: Add Chipone ICN6211 MIPI-DSI to RGB bridge")
---
 drivers/gpu/drm/bridge/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 12 lines

drivers/gpu/drm/bridge/Kconfig config DRM_CDNS_DSI · line 36

Quoted 12 lines
drivers/gpu/drm/bridge/Kconfig +1 -0
index 431b6e12a81f..a630cb8fd1c8 100644
@@ -30,6 +30,7 @@ config DRM_CDNS_DSI
 config DRM_CHIPONE_ICN6211
 	tristate "Chipone ICN6211 MIPI-DSI/RGB Converter bridge"
 	depends on OF
+  select DRM_KMS_HELPER
 	select DRM_MIPI_DSI
 	select DRM_PANEL_BRIDGE
 	help

Hi Laurent,

Quoted 1 line

Either a "select" or a "depends" will resolve this issue,

Mixing "select" and "depends" usually lead to be results. DRM_KMS_HELPER is a symbol that is mostly selected (I think there are a handful of occurrences of "depends", which should probably be fixed).

Quoted 2 lines

but most similar devices in this Kconfig file select DRM_KMS_HELPER. Is there something different about DRM_CHIPONE_ICN6211 that I have missed?

There isn't anything fundamentally different, but because DRM_KMS_HELPER is meant to be selected and not depended on, I think we should fix that for DRM_PANEL_BRIDGE, and it will fix the issue with DRM_CHIPONE_ICN6211. The dependency on the KMS helpers come from drm_panel_bridge.c, not from chipone-icn6211.c as far as I can tell, so it would also be more correct.

Signature · 3 lines
Regards,

Laurent Pinchart
#4 lore raw
Quoted 55 lines · EDT you

Hi Julian,

Quoted 43 lines · Julian Braha
Quoted 27 lines · EDT you
Quoted 8 lines · Julian Braha

When DRM_CHIPONE_ICN6211 is selected, and DRM_KMS_HELPER is not selected, Kbuild gives the following warning:

WARNING: unmet direct dependencies detected for DRM_PANEL_BRIDGE
Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && DRM_KMS_HELPER [=n] Selected by [y]:
- DRM_CHIPONE_ICN6211 [=y] && HAS_IOMEM [=y] && DRM [=y] && DRM_BRIDGE [=y] && OF [=y]

Quoted 7 lines

This is because DRM_CHIPONE_ICN6211 selects DRM_PANEL_BRIDGE without depending on or selecting DRM_KMS_HELPER, despite DRM_PANEL_BRIDGE depending on DRM_KMS_HELPER.

This unmet dependency bug was detected by Kismet, a static analysis tool for Kconfig.
Please advise if this is not the appropriate solution.

Shouldn't DRM_PANEL_BRIDGE select DRM_KMS_HELPER instead of depending on it ?

Quoted 7 lines
Fixes ce517f18944e ("drm: bridge: Add Chipone ICN6211 MIPI-DSI to RGB bridge")
---
 drivers/gpu/drm/bridge/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 12 lines

drivers/gpu/drm/bridge/Kconfig config DRM_CDNS_DSI · line 36

Quoted 12 lines
drivers/gpu/drm/bridge/Kconfig +1 -0
index 431b6e12a81f..a630cb8fd1c8 100644
@@ -30,6 +30,7 @@ config DRM_CDNS_DSI
 config DRM_CHIPONE_ICN6211
 	tristate "Chipone ICN6211 MIPI-DSI/RGB Converter bridge"
 	depends on OF
+  select DRM_KMS_HELPER
 	select DRM_MIPI_DSI
 	select DRM_PANEL_BRIDGE
 	help

Hi Laurent,

Quoted 1 line

Either a "select" or a "depends" will resolve this issue,

Mixing "select" and "depends" usually lead to be results. DRM_KMS_HELPER is a symbol that is mostly selected (I think there are a handful of occurrences of "depends", which should probably be fixed).

Quoted 2 lines

but most similar devices in this Kconfig file select DRM_KMS_HELPER. Is there something different about DRM_CHIPONE_ICN6211 that I have missed?

Quoted 8 lines

There isn't anything fundamentally different, but because DRM_KMS_HELPER is meant to be selected and not depended on, I think we should fix that for DRM_PANEL_BRIDGE, and it will fix the issue with DRM_CHIPONE_ICN6211. The dependency on the KMS helpers come from drm_panel_bridge.c, not from chipone-icn6211.c as far as I can tell, so it would also be more correct.

Hi Laurent,

I appreciate your feedback! I will make your suggested change, and resubmit.

- Julian Braha