public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] sun6i-mipi-csi2: Depend on PHY_SUN6I_MIPI_DPHY
@ 2022-09-05 10:00 Sakari Ailus
  2022-09-09 14:00 ` Paul Kocialkowski
  0 siblings, 1 reply; 4+ messages in thread
From: Sakari Ailus @ 2022-09-05 10:00 UTC (permalink / raw)
  To: linux-media; +Cc: laurent.pinchart, Paul Kocialkowski

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")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
 drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig b/drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig
index eb982466abd30..4d072abdfb705 100644
--- a/drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig
+++ b/drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig
@@ -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
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] sun6i-mipi-csi2: Depend on PHY_SUN6I_MIPI_DPHY
  2022-09-05 10:00 [PATCH 1/1] sun6i-mipi-csi2: Depend on PHY_SUN6I_MIPI_DPHY Sakari Ailus
@ 2022-09-09 14:00 ` Paul Kocialkowski
  2022-09-09 14:36   ` Sakari Ailus
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Kocialkowski @ 2022-09-09 14:00 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: linux-media, laurent.pinchart

[-- Attachment #1: Type: text/plain, Size: 1455 bytes --]

Hi Sakari,

On Mon 05 Sep 22, 13:00, Sakari Ailus wrote:
> 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
 
> Fixes: 94d7fd9692b5 ("media: sunxi: Depend on GENERIC_PHY_MIPI_DPHY")
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> ---
>  drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig b/drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig
> index eb982466abd30..4d072abdfb705 100644
> --- a/drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig
> +++ b/drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig
> @@ -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
> -- 
> 2.30.2
> 

-- 
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] sun6i-mipi-csi2: Depend on PHY_SUN6I_MIPI_DPHY
  2022-09-09 14:00 ` Paul Kocialkowski
@ 2022-09-09 14:36   ` Sakari Ailus
  2022-09-09 14:41     ` Paul Kocialkowski
  0 siblings, 1 reply; 4+ messages in thread
From: Sakari Ailus @ 2022-09-09 14:36 UTC (permalink / raw)
  To: Paul Kocialkowski; +Cc: linux-media, laurent.pinchart

Hi Paul,

On Fri, Sep 09, 2022 at 04:00:37PM +0200, Paul Kocialkowski wrote:
> Hi Sakari,
> 
> On Mon 05 Sep 22, 13:00, Sakari Ailus wrote:
> > 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.

-- 
Sakari Ailus

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] sun6i-mipi-csi2: Depend on PHY_SUN6I_MIPI_DPHY
  2022-09-09 14:36   ` Sakari Ailus
@ 2022-09-09 14:41     ` Paul Kocialkowski
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Kocialkowski @ 2022-09-09 14:41 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: linux-media, laurent.pinchart

[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]

Hi Sakari,

On Fri 09 Sep 22, 14:36, Sakari Ailus wrote:
> Hi Paul,
> 
> On Fri, Sep 09, 2022 at 04:00:37PM +0200, Paul Kocialkowski wrote:
> > Hi Sakari,
> > 
> > On Mon 05 Sep 22, 13:00, Sakari Ailus wrote:
> > > 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.

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

Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>

Thanks,

Paul

-- 
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-09 14:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-05 10:00 [PATCH 1/1] sun6i-mipi-csi2: Depend on PHY_SUN6I_MIPI_DPHY Sakari Ailus
2022-09-09 14:00 ` Paul Kocialkowski
2022-09-09 14:36   ` Sakari Ailus
2022-09-09 14:41     ` Paul Kocialkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox