diff options
| author | 2026-09-13 22:56:50 +0300 | |
|---|---|---|
| committer | 2026-09-15 10:48:51 +0200 | |
| commit | 7df755632142e59a5aec5f85f2654add49220102 (patch) | |
| tree | 17aca1bcb9e149a7c6217120618ff87fc77f731a /scripts/Makefile.thinlto | |
| parent | pinctrl: renesas: rzt2h: Remove unused struct rzt2h_pinctrl::gpio_range (diff) | |
pinctrl: renesas: rzt2h: Restore correct pin mode on IRQ free
rzt2h_gpio_irq_domain_free() calls rzt2h_pinctrl_set_gpio_en() with
false leaving the pin in interrupt function instead of returning it to
GPIO mode.
Pass true to rzt2h_pinctrl_set_gpio_en() to take the pin out of
interrupt function after we're done using it as an IRQ.
rzt2h_pinctrl_set_pfc_mode() switches the pin to Hi-Z, losing the
previous PM value.
Save the PM value before switching to Hi-Z, and restore it after the
IRQ is freed.
Cc: stable@kernel.org
Fixes: 829dde3369a9 ("pinctrl: renesas: rzt2h: Add GPIO IRQ chip to handle interrupts")
Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260913195654.3371385-2-cosmin-gabriel.tanislav.xa@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
