[PATCH 1/7] i2c: gpio: Convert to use descriptors

Lee Jones lee.jones at linaro.org
Mon Sep 18 01:36:29 PDT 2017


On Sun, 17 Sep 2017, Linus Walleij wrote:

> This converts the GPIO-based I2C-driver to using GPIO
> descriptors instead of the old global numberspace-based
> GPIO interface. We:

[STUFF]

> - The MFD Silicon Motion SM501 is a special case. It dynamically
>   spawns an I2C bus off the MFD using sm501_create_subdev().
>   We use an approach to dynamically create a machine descriptor
>   table and attach this to the "SM501-LOW" or "SM501-HIGH"
>   gpiochip. We use chip-local offsets to grab the right lines.
>   We can get rid of two local static inline helpers as part
>   of this refactoring.
> 
> Cc: Steven Miao <realmz6 at gmail.com>
> Cc: Ralf Baechle <ralf at linux-mips.org>
> Cc: Lee Jones <lee.jones at linaro.org>
> Cc: Guenter Roeck <linux at roeck-us.net>
> Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
> Cc: Magnus Damm <magnus.damm at gmail.com>
> Cc: Ben Dooks <ben.dooks at codethink.co.uk>
> Cc: Heiko Schocher <hs at denx.de>
> Acked-by: Olof Johansson <olof at lixom.net>
> Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
> ---
> ChangeLog v1->v2:
> - Fix a minor typo in error path (scl was sda from copy-paste)
> - Collected Olof's ACK
> 
> Steven (Blackfin): requesting ACK for Wolfram to take this patch.
> Ralf (MIPS): requesting ACK for Wolfram to take this patch.
> Lee: requesting ACK for Wolfram to take this patch.

This ...

> SM501 users: requesting Tested-by on this patch.

... loosely depends on this (until it doesn't).

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog



More information about the linux-arm-kernel mailing list