[GIT PULL] gpio fixes for v7.4-rc5
From: Bartosz Golaszewski
Date: Fri Nov 27 2026 - 03:51:42 EST
Linus,
Please pull the following set of GPIO fixes for the next RC.
Thanks,
Bartosz
The following changes since commit b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f:
Linux 7.4-rc4 (2026-11-22 14:57:40 -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.4-rc5
for you to fetch changes up to d8e27d04274746093f8d5a4e909efd9885262166:
gpio: mvebu: fix Armada XP per-CPU mask register save/restore (2026-11-26 15:46:27 +0100)
----------------------------------------------------------------
gpio fixes for v7.4-rc5
GPIO core fixes:
- fix several logic & locking issues and resource leaks in GPIO
character device code
- fix GPIO hogging for controllers using the three-cell binding
- fix inverted trace values in gpiod_get_array_value()
- remove shared GPIO proxies before freeing interrupts that are still
requested by the parent controller and fix a race in remove path
- fix UAF bugs around the GPIO label cleanup
GPIO driver fixes:
- fix a use-after-free bug in gpio-davinci
- fix an issue in gpio-davinci where the driver could setup an IRQ for a
wrong controller
- validate the number of GPIOs in gpio-mvebu
- use correct registers in suspend/resume in gpio-mvebu
- fix non-kerneldoc comment in nsc-gpio header
- fix memory leak in gpio-aspeed
- do not unprepare the debounce clock twice in probe error path in
gpio-omap
- fix resume in gpio-pca953x: restore output registers before direction
to fix potential spurious output-high pin
GPIO tools fixes:
- fix command-line arguments parsing in gpio-hammer
- preserve the device listing error in lsgpio instead of dropping it
unconditionally
- return 0 from gpio-event-mon on success: we currently return the
number of read events from main() which is interpreted as an error in
shell
----------------------------------------------------------------
Adrian Ambrozewicz (8):
gpiolib: wait for pending label frees before cleaning up desc_srcu
gpiolib: free the label of lines released after their chip was removed
gpiolib: cdev: do not free line IRQs again after the chip is removed
gpiolib: cdev: don't sleep in the SRCU read section in read()
gpiolib: cdev: don't leak the IRQ name when the chip is removed
gpiolib: cdev: don't report a failed line read as an edge
gpiolib: let the character device free its IRQs first on chip removal
gpiolib: remove the shared GPIO proxies before freeing the remaining IRQs
Bartosz Golaszewski (1):
gpiolib: use the of_xlate() result when hogging lines
Cong Nguyen (1):
gpio: omap: do not unprepare the debounce clock twice on probe failure
Dean Sellers (1):
gpio: pca953x: restore output registers before direction on resume
Guangshuo Li (1):
gpio: aspeed: Fix potential coprocessor bank map leak
Jan Schär (1):
gpiolib: fix inverted trace values in gpiod_get_array_value()
Randy Dunlap (1):
chardev: GPIO common access methods: repair non-kernel-doc comment
Rosen Penev (2):
gpio: mvebu: validate ngpios before use
gpio: mvebu: fix Armada XP per-CPU mask register save/restore
Sahaj Chaudhari (2):
gpio: davinci: use controller-specific MMIO for BINTEN
gpio: davinci: allocate bank IRQ data before installing handlers
Zhu Jun (3):
tools: gpio-hammer: Accept the maximum number of line offsets
tools: gpio: Preserve device listing errors in lsgpio
tools: gpio: Return success after monitoring requested events
drivers/gpio/gpio-aspeed.c | 12 ++--
drivers/gpio/gpio-davinci.c | 26 ++++----
drivers/gpio/gpio-mvebu.c | 11 ++--
drivers/gpio/gpio-omap.c | 2 -
drivers/gpio/gpio-pca953x.c | 15 +++--
drivers/gpio/gpiolib-cdev.c | 157 ++++++++++++++++++++++++++++++++------------
drivers/gpio/gpiolib-of.c | 10 +--
drivers/gpio/gpiolib-of.h | 15 +++--
drivers/gpio/gpiolib.c | 54 ++++++++++-----
include/linux/nsc_gpio.h | 2 +-
tools/gpio/gpio-event-mon.c | 4 +-
tools/gpio/gpio-hammer.c | 4 +-
tools/gpio/lsgpio.c | 3 +-
13 files changed, 211 insertions(+), 104 deletions(-)