pinctrl: renesas: r8a77995: Retain POCCTRL0 register across suspend/resume
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 8 Mar 2023 10:42:37 +0000 (11:42 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 30 Mar 2023 13:39:04 +0000 (15:39 +0200)
commit31f0a454d3dff997eb6570297e0c555d511dbdd6
tree54234e3237749efbd0c3ce4bf7028e7ce7ef69e8
parent9d7558ed8372c51cbed011cb1dc3eb1beee212cf
pinctrl: renesas: r8a77995: Retain POCCTRL0 register across suspend/resume

The POC Control Register 0 (POCCTRL0) on R-Car D3 is not registered in
the pinmux_ioctrl_regs[] array.  Hence it is not saved/restored during
suspend/resume, and its contents may be lost after s2ram.

This went unnoticed when improving suspend/resume support in commit
d92ee9cf8ec8d7fe ("pinctrl: sh-pfc: rcar-gen3: Retain TDSELCTRL register
across suspend/resume").

Fix this by moving the pinmux_ioctrl_regs[] array up, and adding the
POCCTRL0 register.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/d17402b83b1f3fa0f572527c0382027bccb86205.1678271030.git.geert+renesas@glider.be
drivers/pinctrl/renesas/pfc-r8a77995.c