[PATCH v2 0/4] gpio: fix IRQ handling and probe error paths in four drivers
From: shao.mingyin
Date: Tue Nov 10 2026 - 10:35:48 EST
Four independent fixes in drivers/gpio/. Two stop probe from swallowing
-EPROBE_DEFER so that the controller is retried once its parent interrupt
controller is ready, one makes the 104-IDI-48 IRQ status register
accessible again, and one keeps a missing device property from being
mistaken for a multi-gigabyte allocation.
The patches touch four separate drivers and have no shared dependency;
they are ordered by severity and can be reviewed, applied and taken
individually:
1/4 gpio: aspeed-sgpio: propagate IRQ setup error in probe
2/4 gpio: 104-idi-48: fix max_register blocking the IRQ register
3/4 gpio: brcmstb: don't turn platform_get_irq errors into -ENOENT
4/4 gpio: line-mux: fix unsigned truncation of property count error
Changes in v2:
- 4/4 (was 5/5): widen name[] to 11 bytes and print host_no with %u, so
a ten-digit host number is not truncated to nine digits and cannot
collide with an existing procfs entry (Jonas Jelonek).
- 1/4 (was 2/5), 2/4 (was 3/5), 3/4 (was 4/5): unchanged; pick up the
Reviewed-by/Acked-by tags.
- The rcar patch (v1 1/5) was withdrawn after Geert Uytterhoeven's NAK
on the v1 thread and is not reposted.
- This series replaces the standalone v2 of the line-mux patch posted on
10 Nov; the other three patches are unchanged from v1 apart from the
tags.
Link to v1: https://lore.kernel.org/all/202611071612471583hApcIRmqJX9mMWQtxmcN@xxxxxxxxxx/
Shao Mingyin (4):
gpio: aspeed-sgpio: propagate IRQ setup error in probe
gpio: 104-idi-48: fix max_register blocking the IRQ register
gpio: brcmstb: don't turn platform_get_irq errors into -ENOENT
gpio: line-mux: fix unsigned truncation of property count error
drivers/gpio/gpio-104-idi-48.c | 2 +-
drivers/gpio/gpio-aspeed-sgpio.c | 4 +++-
drivers/gpio/gpio-brcmstb.c | 4 ++--
drivers/gpio/gpio-line-mux.c | 5 +++--
4 files changed, 9 insertions(+), 6 deletions(-)
---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b