Skip to contentSkip to conversation

sun6i-mipi-csi2: Depend on PHY_SUN6I_MIPI_DPHY

PATCH In review Sakari Ailus 2 participants 4 messages Sep 5, 2022 – Sep 9, 2022

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

PATCH 1/1 sun6i-mipi-csi2: Depend on PHY_SUN6I_MIPI_DPHY

PHY_SUN6I_MIPI_DPHY is not a freely selectable option and so may not always be available. Depend on it instead.

Fixes 94d7fd9692b5 ("media: sunxi: Depend on GENERIC_PHY_MIPI_DPHY")
---
 drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig +1 -1
index eb982466abd30..4d072abdfb705 100644
@@ -4,10 +4,10 @@ config VIDEO_SUN6I_MIPI_CSI2
 	depends on V4L_PLATFORM_DRIVERS && VIDEO_DEV
 	depends on ARCH_SUNXI || COMPILE_TEST
 	depends on PM && COMMON_CLK
+	depends on PHY_SUN6I_MIPI_DPHY
 	select MEDIA_CONTROLLER
 	select VIDEO_V4L2_SUBDEV_API
 	select V4L2_FWNODE
-	select PHY_SUN6I_MIPI_DPHY
 	select GENERIC_PHY_MIPI_DPHY
 	select REGMAP_MMIO
 	help
Signature · 1 line
2.30.2
#1 lore raw

Hi Sakari,

Quoted 2 lines · Sakari Ailus

PHY_SUN6I_MIPI_DPHY is not a freely selectable option and so may not always be available. Depend on it instead.

I don't get what you mean by "not a freely selectable option". It's definitely a tristate. Also no build issue will occur if it's unselected (but I guess that's not the point here).

Cheers,

Paul

Quoted 25 lines
Fixes 94d7fd9692b5 ("media: sunxi: Depend on GENERIC_PHY_MIPI_DPHY")
---
 drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig +1 -1
index eb982466abd30..4d072abdfb705 100644
@@ -4,10 +4,10 @@ config VIDEO_SUN6I_MIPI_CSI2
 	depends on V4L_PLATFORM_DRIVERS && VIDEO_DEV
 	depends on ARCH_SUNXI || COMPILE_TEST
 	depends on PM && COMMON_CLK
+	depends on PHY_SUN6I_MIPI_DPHY
 	select MEDIA_CONTROLLER
 	select VIDEO_V4L2_SUBDEV_API
 	select V4L2_FWNODE
-	select PHY_SUN6I_MIPI_DPHY
 	select GENERIC_PHY_MIPI_DPHY
 	select REGMAP_MMIO
 	help
Signature · 1 line
2.30.2
Signature · 3 lines
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
#2 lore raw

Hi Paul,

Quoted 9 lines · Paul Kocialkowski

Hi Sakari,

Quoted 2 lines · Sakari Ailus

PHY_SUN6I_MIPI_DPHY is not a freely selectable option and so may not always be available. Depend on it instead.

I don't get what you mean by "not a freely selectable option". It's definitely a tristate. Also no build issue will occur if it's unselected (but I guess that's not the point here).

It depends on a number of other configuration options. You can force the value of the option itself but not its dependencies. This can lead to build errors dependin on the values of the options PHY_SUN6I_MIPI_DPHY needs.

Signature · 1 line
Sakari Ailus
Reviewed-by
#3 lore raw

Hi Sakari,

Quoted 9 lines · Sakari Ailus

Hi Paul,

Quoted 6 lines · Paul Kocialkowski

Hi Sakari,

Quoted 2 lines · Sakari Ailus

PHY_SUN6I_MIPI_DPHY is not a freely selectable option and so may not always be available. Depend on it instead.

Quoted 7 lines
Quoted 3 lines

I don't get what you mean by "not a freely selectable option". It's definitely a tristate. Also no build issue will occur if it's unselected (but I guess that's not the point here).

It depends on a number of other configuration options. You can force the value of the option itself but not its dependencies. This can lead to build errors dependin on the values of the options PHY_SUN6I_MIPI_DPHY needs.

Ah yes I see, it's the usual issue with select selecting the option regardless of its dependencies. My bad.

Thanks,

Paul

Signature · 3 lines
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com