[PATCH] gpio: rockchip: restore interrupt settings after hibernation

Igor Velkov iav at iav.lv
Sat Nov 7 21:27:51 PST 2026


Heiko Stuebner wrote:
> This looks sensible in general, but I wonder what happens with the other
> registers of the gpio-controller here after hibernation?
>
> Like does the direction + output value, debounce get restored from
> some other means?

Hi Heiko,

No, the driver restores nothing else: after a power loss the bank comes
back as the boot kernel left it. Debounce requested on a line was lost on
both ODROID-M1 (GPIO v2) and ROCK Pi 4A (GPIO v1); direction and output
matched only because the boot kernel sets them the same way.

v2 will save and restore the output, direction and debounce registers
too, as gpio-dwapb does.

Igor



More information about the Linux-rockchip mailing list