[GIT PULL] gpio fixes for v7.4-rc4

From: Bartosz Golaszewski

Date: Fri Nov 20 2026 - 08:09:34 EST


Linus,

Please pull the following set of GPIO fixes for the next RC.

Thanks,
Bartosz

The following changes since commit aebb7274476403040d582c61478df8f4a7bf9cd3:

Linux 7.4-rc3 (2026-11-15 14:30:11 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio-fixes-for-v7.4-rc4

for you to fetch changes up to 31678e68f82636a27fbad58ae40054557da4fd7e:

gpio: shared-proxy: propagate -ENOTSUPP from .set_config() (2026-11-20 13:36:53 +0100)

----------------------------------------------------------------
gpio fixes for v7.4-rc4

GPIO core fixes:
- delay freeing the line state workqueue to device release and fix a UAF
bug
- fix races in access to the flags field of GPIO descriptors
- clear the debounce period field of struct gpio_desc before clearing
the "requested" flag
- propagate -ENOTSUPP from .set_config() in gpio-shared-proxy

GPIO driver fixes:
- check the return value of clk_prepare in gpio-omap
- reject bulk-in endpoints smaller than 3 bytes in gpio-mpsse
- validate the pin index of interrupt events in gpio-ljca
- disable interrupts around the chip lock in direction callbacks in
gpio-mlxbf2
- fix line name handling in gpio-virtio

Other:
- do not clobber errno on read() errors in gpio-watch user-space tool

----------------------------------------------------------------
Alexandre Becholey (1):
gpio: ljca: Validate the pin index of interrupt events

Bartosz Golaszewski (8):
gpiolib: don't overwrite the entire flags field in gpiod_get_direction()
gpio: shared: use atomic set_bit() for descriptor flags
gpiolib: clear debounce period before the "requested" flag
gpiolib: don't overwrite the entire flags field in gpiod_free_commit()
gpio: cdev: don't overwrite the whole flags field when configuring lines
Merge tag 'v7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into gpio/for-current
gpiolib: keep the line state workqueue alive until device release
gpio: shared-proxy: propagate -ENOTSUPP from .set_config()

David Thompson (1):
gpio: mlxbf2: Disable interrupts around the chip lock in direction ops

Gu Bin (1):
tools: gpio: gpio-watch: do not clobber errno on read error

Hyunjung Ko (1):
gpio: mpsse: reject bulk-in endpoints smaller than 3 bytes

Jiawen Liu (1):
gpio: omap: handle debounce clock preparation failure

Lianjie Wang (2):
gpio: virtio: bound the line names block by its configured size
gpio: virtio: compute the line names size in a size_t

drivers/gpio/gpio-ljca.c | 11 +++--
drivers/gpio/gpio-mlxbf2.c | 29 ++++++++----
drivers/gpio/gpio-mpsse.c | 4 ++
drivers/gpio/gpio-omap.c | 10 +----
drivers/gpio/gpio-shared-proxy.c | 2 +-
drivers/gpio/gpio-virtio.c | 13 +++---
drivers/gpio/gpiolib-cdev.c | 95 ++++++++++++++++++++--------------------
drivers/gpio/gpiolib-shared.c | 5 +--
drivers/gpio/gpiolib.c | 39 +++++++++--------
tools/gpio/gpio-watch.c | 2 +-
10 files changed, 113 insertions(+), 97 deletions(-)