[PATCH v2 0/2] gpio: shared: fix devicetree corner cases

Bartosz Golaszewski posted 2 patches 2 weeks, 5 days ago
drivers/gpio/gpiolib-shared.c | 33 +++++++++++++++++++++++++++++----
drivers/gpio/gpiolib-shared.h | 11 +++++++----
drivers/gpio/gpiolib.c        |  6 +++---
3 files changed, 39 insertions(+), 11 deletions(-)
[PATCH v2 0/2] gpio: shared: fix devicetree corner cases
Posted by Bartosz Golaszewski 2 weeks, 5 days ago
This fixes two issues with shared GPIO management reported by Jon.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
Changes in v2:
- Add patch 2/2 fixing an issue with sharing GPIOs by child nodes of
  devices
- Collect tags
- Link to v1: https://patch.msgid.link/20260316-gpio-shared-xlate-v1-1-0ce07a1362d2@oss.qualcomm.com

---
Bartosz Golaszewski (2):
      gpio: shared: call gpio_chip::of_xlate() if set
      gpio: shared: handle pins shared by child nodes of devices

 drivers/gpio/gpiolib-shared.c | 33 +++++++++++++++++++++++++++++----
 drivers/gpio/gpiolib-shared.h | 11 +++++++----
 drivers/gpio/gpiolib.c        |  6 +++---
 3 files changed, 39 insertions(+), 11 deletions(-)
---
base-commit: eadf2995ab7c8158bf694304d41e49cada263277
change-id: 20260316-gpio-shared-xlate-708c651cac5f

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Re: [PATCH v2 0/2] gpio: shared: fix devicetree corner cases
Posted by Bartosz Golaszewski 2 weeks ago
On Wed, 18 Mar 2026 15:00:52 +0100, Bartosz Golaszewski wrote:
> This fixes two issues with shared GPIO management reported by Jon.
> 
> 

Applied, thanks!

[1/2] gpio: shared: call gpio_chip::of_xlate() if set
      https://git.kernel.org/brgl/c/710abda58055ed5eaa8958107633cc12a365c328
[2/2] gpio: shared: handle pins shared by child nodes of devices
      https://git.kernel.org/brgl/c/ec42a3a90ae9ae64b16d01a2e5d32ec0865ca8cf

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Re: [PATCH v2 0/2] gpio: shared: fix devicetree corner cases
Posted by Jon Hunter 2 weeks, 3 days ago
On 18/03/2026 14:00, Bartosz Golaszewski wrote:
> This fixes two issues with shared GPIO management reported by Jon.
> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> ---
> Changes in v2:
> - Add patch 2/2 fixing an issue with sharing GPIOs by child nodes of
>    devices
> - Collect tags
> - Link to v1: https://patch.msgid.link/20260316-gpio-shared-xlate-v1-1-0ce07a1362d2@oss.qualcomm.com
> 
> ---
> Bartosz Golaszewski (2):
>        gpio: shared: call gpio_chip::of_xlate() if set
>        gpio: shared: handle pins shared by child nodes of devices
> 
>   drivers/gpio/gpiolib-shared.c | 33 +++++++++++++++++++++++++++++----
>   drivers/gpio/gpiolib-shared.h | 11 +++++++----
>   drivers/gpio/gpiolib.c        |  6 +++---
>   3 files changed, 39 insertions(+), 11 deletions(-)
> ---
> base-commit: eadf2995ab7c8158bf694304d41e49cada263277
> change-id: 20260316-gpio-shared-xlate-708c651cac5f

Tested-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>

Thanks for the rapid fixes!

Jon

-- 
nvpublic