All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: i2c: max9286: Depend on GPIOLIB
@ 2020-08-19  0:22 Laurent Pinchart
  2020-08-19  8:45 ` Kieran Bingham
  0 siblings, 1 reply; 5+ messages in thread
From: Laurent Pinchart @ 2020-08-19  0:22 UTC (permalink / raw)
  To: Kieran Bingham, Jacopo Mondi, Niklas Söderlund; +Cc: linux-media

The max9286 driver depends on the GPIO library, list the dependency in
Kconfig.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 66d8c9d2422d ("media: i2c: Add MAX9286 driver")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 drivers/media/i2c/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
index 48ae60a2c603..70ba6ca1b912 100644
--- a/drivers/media/i2c/Kconfig
+++ b/drivers/media/i2c/Kconfig
@@ -466,6 +466,7 @@ config VIDEO_VPX3220
 
 config VIDEO_MAX9286
 	tristate "Maxim MAX9286 GMSL deserializer support"
+	depends on GPIOLIB
 	depends on I2C && I2C_MUX
 	depends on OF
 	select V4L2_FWNODE
-- 
Regards,

Laurent Pinchart


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

* Re: [PATCH] media: i2c: max9286: Depend on GPIOLIB
  2020-08-19  0:22 [PATCH] media: i2c: max9286: Depend on GPIOLIB Laurent Pinchart
@ 2020-08-19  8:45 ` Kieran Bingham
  2020-08-19 11:58   ` Laurent Pinchart
  0 siblings, 1 reply; 5+ messages in thread
From: Kieran Bingham @ 2020-08-19  8:45 UTC (permalink / raw)
  To: Laurent Pinchart, Jacopo Mondi, Niklas Söderlund; +Cc: linux-media

Hi Laurent,

On 19/08/2020 01:22, Laurent Pinchart wrote:
> The max9286 driver depends on the GPIO library, list the dependency in
> Kconfig.
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Fixes: 66d8c9d2422d ("media: i2c: Add MAX9286 driver")
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Sakari has already posted a fix for this on the 3rd August at:

[PATCH 1/1] max9286: Depend on OF_GPIO

https://lore.kernel.org/linux-media/20200803090935.23619-1-sakari.ailus@linux.intel.com/

However he chose to depend upon OF_GPIO.

I think in this instance, his patch is more correct as this particular
issue is regarding the setting of the of_node on the GPIO component,
which is guarded by CONFIG_OF_GPIO in the headers, thus I believe we can
have GPIOLIB && !OF_GPIO, which would still leave compile breakage with
your patch.

--
Regards

Kieran



> ---
>  drivers/media/i2c/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
> index 48ae60a2c603..70ba6ca1b912 100644
> --- a/drivers/media/i2c/Kconfig
> +++ b/drivers/media/i2c/Kconfig
> @@ -466,6 +466,7 @@ config VIDEO_VPX3220
>  
>  config VIDEO_MAX9286
>  	tristate "Maxim MAX9286 GMSL deserializer support"
> +	depends on GPIOLIB
>  	depends on I2C && I2C_MUX
>  	depends on OF
>  	select V4L2_FWNODE
> 


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

* Re: [PATCH] media: i2c: max9286: Depend on GPIOLIB
  2020-08-19  8:45 ` Kieran Bingham
@ 2020-08-19 11:58   ` Laurent Pinchart
  2020-08-19 13:00     ` Kieran Bingham
  0 siblings, 1 reply; 5+ messages in thread
From: Laurent Pinchart @ 2020-08-19 11:58 UTC (permalink / raw)
  To: Kieran Bingham; +Cc: Jacopo Mondi, Niklas Söderlund, linux-media

Hi Kieran,

On Wed, Aug 19, 2020 at 09:45:32AM +0100, Kieran Bingham wrote:
> On 19/08/2020 01:22, Laurent Pinchart wrote:
> > The max9286 driver depends on the GPIO library, list the dependency in
> > Kconfig.
> > 
> > Reported-by: kernel test robot <lkp@intel.com>
> > Fixes: 66d8c9d2422d ("media: i2c: Add MAX9286 driver")
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> 
> Sakari has already posted a fix for this on the 3rd August at:
> 
> [PATCH 1/1] max9286: Depend on OF_GPIO
> 
> https://lore.kernel.org/linux-media/20200803090935.23619-1-sakari.ailus@linux.intel.com/

Is that on its way upstream ? I've submitted this patch in response to a
0day bot report, the more we wait with fixes, the more likely effort
will be duplicated :-S

> However he chose to depend upon OF_GPIO.
> 
> I think in this instance, his patch is more correct as this particular
> issue is regarding the setting of the of_node on the GPIO component,
> which is guarded by CONFIG_OF_GPIO in the headers, thus I believe we can
> have GPIOLIB && !OF_GPIO, which would still leave compile breakage with
> your patch.

You can't have GPIOLIB && !OF_GPIO though, as the driver also depends on
OF, and OF_GPIO will be automatically selected when GPIOLIB and OF are
set. I'm fine with Sakari's patch though.

> > ---
> >  drivers/media/i2c/Kconfig | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
> > index 48ae60a2c603..70ba6ca1b912 100644
> > --- a/drivers/media/i2c/Kconfig
> > +++ b/drivers/media/i2c/Kconfig
> > @@ -466,6 +466,7 @@ config VIDEO_VPX3220
> >  
> >  config VIDEO_MAX9286
> >  	tristate "Maxim MAX9286 GMSL deserializer support"
> > +	depends on GPIOLIB
> >  	depends on I2C && I2C_MUX
> >  	depends on OF
> >  	select V4L2_FWNODE
> > 
> 

-- 
Regards,

Laurent Pinchart

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

* Re: [PATCH] media: i2c: max9286: Depend on GPIOLIB
  2020-08-19 11:58   ` Laurent Pinchart
@ 2020-08-19 13:00     ` Kieran Bingham
  2020-08-19 20:14       ` Sakari Ailus
  0 siblings, 1 reply; 5+ messages in thread
From: Kieran Bingham @ 2020-08-19 13:00 UTC (permalink / raw)
  To: Laurent Pinchart, Sakari Ailus
  Cc: Jacopo Mondi, Niklas Söderlund, linux-media, Mauro Carvalho Chehab

Hi Laurent,

+Sakari, +Mauro,

On 19/08/2020 12:58, Laurent Pinchart wrote:
> Hi Kieran,
> 
> On Wed, Aug 19, 2020 at 09:45:32AM +0100, Kieran Bingham wrote:
>> On 19/08/2020 01:22, Laurent Pinchart wrote:
>>> The max9286 driver depends on the GPIO library, list the dependency in
>>> Kconfig.
>>>
>>> Reported-by: kernel test robot <lkp@intel.com>
>>> Fixes: 66d8c9d2422d ("media: i2c: Add MAX9286 driver")
>>> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>>
>> Sakari has already posted a fix for this on the 3rd August at:
>>
>> [PATCH 1/1] max9286: Depend on OF_GPIO
>>
>> https://lore.kernel.org/linux-media/20200803090935.23619-1-sakari.ailus@linux.intel.com/
> 
> Is that on its way upstream ? I've submitted this patch in response to a
> 0day bot report, the more we wait with fixes, the more likely effort
> will be duplicated :-S

I don't know - it's out of my hands ;-)
I've added Sakari and Mauro to this thread.

I was also pinged on this issue on the 13th August, where Randy Dunlap
had encountered the same build error, at the time Sakari mentioned [0]
he'll send a pull-request soon ...

[0]
https://lore.kernel.org/linux-media/20200813215505.GC24582@paasikivi.fi.intel.com/

Is there a way to accelerate the integration of that fix?

--
Kieran

> 
>> However he chose to depend upon OF_GPIO.
>>
>> I think in this instance, his patch is more correct as this particular
>> issue is regarding the setting of the of_node on the GPIO component,
>> which is guarded by CONFIG_OF_GPIO in the headers, thus I believe we can
>> have GPIOLIB && !OF_GPIO, which would still leave compile breakage with
>> your patch.
> 
> You can't have GPIOLIB && !OF_GPIO though, as the driver also depends on
> OF, and OF_GPIO will be automatically selected when GPIOLIB and OF are
> set. I'm fine with Sakari's patch though.
> 
>>> ---
>>>  drivers/media/i2c/Kconfig | 1 +
>>>  1 file changed, 1 insertion(+)
>>>
>>> diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
>>> index 48ae60a2c603..70ba6ca1b912 100644
>>> --- a/drivers/media/i2c/Kconfig
>>> +++ b/drivers/media/i2c/Kconfig
>>> @@ -466,6 +466,7 @@ config VIDEO_VPX3220
>>>  
>>>  config VIDEO_MAX9286
>>>  	tristate "Maxim MAX9286 GMSL deserializer support"
>>> +	depends on GPIOLIB
>>>  	depends on I2C && I2C_MUX
>>>  	depends on OF
>>>  	select V4L2_FWNODE
>>>
>>
> 


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

* Re: [PATCH] media: i2c: max9286: Depend on GPIOLIB
  2020-08-19 13:00     ` Kieran Bingham
@ 2020-08-19 20:14       ` Sakari Ailus
  0 siblings, 0 replies; 5+ messages in thread
From: Sakari Ailus @ 2020-08-19 20:14 UTC (permalink / raw)
  To: Kieran Bingham
  Cc: Laurent Pinchart, Jacopo Mondi, Niklas Söderlund,
	linux-media, Mauro Carvalho Chehab

Hi Kieran, Laurent,

On Wed, Aug 19, 2020 at 02:00:57PM +0100, Kieran Bingham wrote:
> Hi Laurent,
> 
> +Sakari, +Mauro,
> 
> On 19/08/2020 12:58, Laurent Pinchart wrote:
> > Hi Kieran,
> > 
> > On Wed, Aug 19, 2020 at 09:45:32AM +0100, Kieran Bingham wrote:
> >> On 19/08/2020 01:22, Laurent Pinchart wrote:
> >>> The max9286 driver depends on the GPIO library, list the dependency in
> >>> Kconfig.
> >>>
> >>> Reported-by: kernel test robot <lkp@intel.com>
> >>> Fixes: 66d8c9d2422d ("media: i2c: Add MAX9286 driver")
> >>> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> >>
> >> Sakari has already posted a fix for this on the 3rd August at:
> >>
> >> [PATCH 1/1] max9286: Depend on OF_GPIO
> >>
> >> https://lore.kernel.org/linux-media/20200803090935.23619-1-sakari.ailus@linux.intel.com/
> > 
> > Is that on its way upstream ? I've submitted this patch in response to a
> > 0day bot report, the more we wait with fixes, the more likely effort
> > will be duplicated :-S
> 
> I don't know - it's out of my hands ;-)
> I've added Sakari and Mauro to this thread.
> 
> I was also pinged on this issue on the 13th August, where Randy Dunlap
> had encountered the same build error, at the time Sakari mentioned [0]
> he'll send a pull-request soon ...
> 
> [0]
> https://lore.kernel.org/linux-media/20200813215505.GC24582@paasikivi.fi.intel.com/
> 
> Is there a way to accelerate the integration of that fix?

Not really; I need the media-tree fixes branch for the 5.9 kernel first.

-- 
Sakari Ailus

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

end of thread, other threads:[~2020-08-19 20:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-19  0:22 [PATCH] media: i2c: max9286: Depend on GPIOLIB Laurent Pinchart
2020-08-19  8:45 ` Kieran Bingham
2020-08-19 11:58   ` Laurent Pinchart
2020-08-19 13:00     ` Kieran Bingham
2020-08-19 20:14       ` Sakari Ailus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.