Re: [PATCH] gpio: gpio-pca953x, Add get_multiple function

From: Bartosz Golaszewski
Date: Tue Apr 14 2020 - 10:19:22 EST


pon., 6 kwi 2020 o 18:53 Paul Thomas <pthomas8589@xxxxxxxxx> napisaÅ(a):
>
> Implement a get_multiple function for gpio-pca953x. If a driver
> leaves get_multiple unimplemented then gpio_chip_get_multiple()
> in gpiolib.c takes care of it by calling chip->get() as needed.
> For i2c chips this is very inefficient. For example if you do an
> 8-bit read then instead of a single i2c transaction there are
> 8 transactions reading the same byte!
>
> This has been tested with max7312 chips on a 5.2 kernel.
>
> Signed-off-by: Paul Thomas <pthomas8589@xxxxxxxxx>
> ---

Hi, this doesn't apply on top of current master. Can you rebase it on
top of v5.7-rc1 and resend?

Bart