drm/sun4i: fix unmet dependency on RESET_CONTROLLER for PHY_SUN6I_MIPI_DPHY
PATCH v2 1/1 drm/sun4i: fix unmet dependency on RESET_CONTROLLER for PHY_SUN6I_MIPI_DPHY
When PHY_SUN6I_MIPI_DPHY is selected, and RESET_CONTROLLER is not selected, Kbuild gives the following warning:
WARNING: unmet direct dependencies detected for PHY_SUN6I_MIPI_DPHY
Depends on [n]: (ARCH_SUNXI [=n] || COMPILE_TEST [=y]) && HAS_IOMEM [=y] && COMMON_CLK [=y] && RESET_CONTROLLER [=n] Selected by [y]:
- DRM_SUN6I_DSI [=y] && HAS_IOMEM [=y] && DRM_SUN4I [=y]
This is because DRM_SUN6I_DSI selects PHY_SUN6I_MIPI_DPHY without selecting or depending on RESET_CONTROLLER, despite PHY_SUN6I_MIPI_DPHY depending on RESET_CONTROLLER.
These unmet dependency bugs were detected by Kismet, a static analysis tool for Kconfig. Please advise if this is not the appropriate solution.
v2:
Fixed indentation to match the rest of the file.
--- drivers/gpu/drm/sun4i/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/sun4i/Kconfig +1 -0
@@ -46,6 +46,7 @@ config DRM_SUN6I_DSI default MACH_SUN8I select CRC_CCITT select DRM_MIPI_DSI + select RESET_CONTROLLER select PHY_SUN6I_MIPI_DPHY help Choose this option if you want have an Allwinner SoC with
Signature · 1 line
2.30.2
Hi Julian,
Dne torek, 09. november 2021 ob 04:23:51 CET je Julian Braha napisal(a):
Quoted 5 lines
When
PHY_SUN6I_MIPI_DPHYis selected, andRESET_CONTROLLERis not selected,Kbuildgives the following warning:WARNING: unmet direct dependencies detected for
PHY_SUN6I_MIPI_DPHY
Depends on [n]: (ARCH_SUNXI[=n] ||COMPILE_TEST[=y]) &&HAS_IOMEM[=y]
&& COMMON_CLK [=y] && RESET_CONTROLLER [=n]
Quoted 7 lines
Selected by [y]:
-DRM_SUN6I_DSI[=y] &&HAS_IOMEM[=y] &&DRM_SUN4I[=y]This is because
DRM_SUN6I_DSIselectsPHY_SUN6I_MIPI_DPHYwithout selecting or depending onRESET_CONTROLLER, despitePHY_SUN6I_MIPI_DPHYdepending onRESET_CONTROLLER.
Quoted 8 lines
These unmet dependency bugs were detected by Kismet, a static analysis tool for
Kconfig. Please advise if this is not the appropriate solution.v2:
Fixed indentation to match the rest of the file.Signed-off-by Julian Braha <[email protected]>
Best regards,
Jernej
Maxime Ripard
AppliedRe: (subset) [PATCH] [PATCH v2] drm/sun4i: fix unmet dependency on RESET_CONTROLLER for PHY_SUN6I_MIPI_DPHY
In reply to Julian BrahaQuoted 9 lines · Julian Braha
When
PHY_SUN6I_MIPI_DPHYis selected, andRESET_CONTROLLERis not selected,Kbuildgives the following warning:WARNING: unmet direct dependencies detected for
PHY_SUN6I_MIPI_DPHY
Depends on [n]: (ARCH_SUNXI[=n] ||COMPILE_TEST[=y]) &&HAS_IOMEM[=y] &&COMMON_CLK[=y] &&RESET_CONTROLLER[=n] Selected by [y]:
-DRM_SUN6I_DSI[=y] &&HAS_IOMEM[=y] &&DRM_SUN4I[=y][...]
Applied to drm/drm-misc (drm-misc-fixes).
Thanks!
Maxime