[GIT PULL] gpio fixes for v7.0-rc1

From: Bartosz Golaszewski

Date: Fri Feb 20 2026 - 04:40:36 EST


Linus,

Please pull the following set of fixes for the upcoming RC from the GPIO
tree. Details are in the signed tag.

Thanks,
Bartosz

The following changes since commit d70178215211a7c73ecabeb55eeb0f8ef002bcab:

Merge tag 'gpio-updates-for-v7.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux (2026-02-11 10:53:39 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git tags/gpio-fixes-for-v7.0-rc1

for you to fetch changes up to fbd03587ba732c612b8a569d1cf5bed72bd3a27c:

gpio: amd-fch: ionly return allowed values from amd_fch_gpio_get() (2026-02-18 10:56:35 +0100)

----------------------------------------------------------------
gpio fixes for v7.0-rc1

- add a missing IS_ERR() check in gpio-nomadik
- fix a NULL-pointer dereference in GPIO character device code
- restore label matching in swnode-lookup due to reported regressions in
existing users (this will get removed again once we audit and update all
drivers)
- fix remove path in GPIO sysfs code
- normalize the return value of gpio_chip::get() in gpio-amd-fch

----------------------------------------------------------------
Bartosz Golaszewski (2):
gpio: swnode: restore the swnode-name-against-chip-label matching
gpio: sysfs: fix chip removal with GPIOs exported over sysfs

Dmitry Torokhov (1):
gpio: amd-fch: ionly return allowed values from amd_fch_gpio_get()

Douglas Anderson (1):
gpio: cdev: Avoid NULL dereference in linehandle_create()

Ethan Tidmore (1):
gpio: nomadik: Add missing IS_ERR() check

drivers/gpio/gpio-amd-fch.c | 7 +--
drivers/gpio/gpio-nomadik.c | 3 ++
drivers/gpio/gpiolib-cdev.c | 2 +-
drivers/gpio/gpiolib-swnode.c | 19 ++++++++
drivers/gpio/gpiolib-sysfs.c | 106 ++++++++++++++++++++++--------------------
5 files changed, 82 insertions(+), 55 deletions(-)