Re: [PATCH] media: i2c: max9286: Depend on GPIOLIB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
>>> Fixes: 66d8c9d2422d ("media: i2c: Add MAX9286 driver")
>>> Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
>>
>> 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@xxxxxxxxxxxxxxx/
> 
> 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@xxxxxxxxxxxxxxxxxxxxxx/

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
>>>
>>
> 




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux