Re: [PATCH] i2c: core: Use GPIO descriptors for recovery

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

 



On Fri, Dec 08, 2017 at 11:20:02AM +0100, Linus Walleij wrote:
> The I2C core contains code for handling a fallback recovery
> using GPIO when a piece of I2C hardware fails in duty.
> 
> This code passes GPIO numbers from the global GPIO
> numberspace around and we want to get rid of this and use
> GPIO descriptors associated with the devices.
> 
> After some digging it turns out that there are two users
> of the mechanism in the entire kernel:
> 
> - i.MX that simply define "scl-gpios" and "sda-gpios" in
>   the device tree which is already creating descriptors
>   associated with the device, that we can pick up and use.
> 
> - Two DaVinci boards that pass the SCL and SDA GPIOs using
>   custom platform data.
> 
> Refactor the core to grab the SCL and SDA GPIO descriptors
> on-demand when doing recovery, and release them when
> recovery is done. Grab the named descriptors "scl" and
> "sda" which will make the i.MX method work out of the
> box.
> 
> Augment the two DaVinci board files to pass descriptors
> using static tables.
> 
> Cc: Shawn Guo <shawnguo@xxxxxxxxxx>
> Cc: Sascha Hauer <kernel@xxxxxxxxxxxxxx>
> Cc: Fabio Estevam <fabio.estevam@xxxxxxx>
> Cc: Sekhar Nori <nsekhar@xxxxxx>
> Cc: Kevin Hilman <khilman@xxxxxxxxxx>
> Cc: Keerthy <j-keerthy@xxxxxx>
> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

We have this in i2c/for-next:

3991c5c80beaf7 ("i2c: Switch to using gpiod interface for gpio bus recovery")

Sorry, I just noticed you were not on CC. I wrongly remembered you took
part in that discussion, too.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux