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

From: Igor Velkov

Date: Sun Nov 08 2026 - 00:28:56 EST


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