[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <175258978660.65843.2188692091974545508.b4-ty@linaro.org>
Date: Tue, 15 Jul 2025 16:29:48 +0200
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Hugo Villeneuve <hugo@...ovil.com>
Cc: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>,
Hugo Villeneuve <hvilleneuve@...onoff.com>,
linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] gpio: pca953x: use regmap_update_bits() to improve efficiency
From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
On Mon, 14 Jul 2025 09:37:30 -0400, Hugo Villeneuve wrote:
> Using regmap_update_bits() allows to reduce the number of I2C transfers
> when updating bits that haven't changed on non-volatile registers.
>
> For example on a PCAL6416, when changing a GPIO direction from input to
> output, the number of I2C transfers can be reduced from 4 to just 1 if
> the pull resistors configuration hasn't changed and the output value
> is the same as before.
>
> [...]
Applied, thanks!
[1/1] gpio: pca953x: use regmap_update_bits() to improve efficiency
https://git.kernel.org/brgl/linux/c/2aa8ccab5ae67281e4d3660f8d9ee68d8b76fcef
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Powered by blists - more mailing lists