i3c: master: svc: fix i3c suspend/resume issue
authorClark Wang <xiaoning.wang@nxp.com>
Wed, 17 May 2023 03:30:28 +0000 (11:30 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 4 Jun 2023 22:50:51 +0000 (00:50 +0200)
commit1c5ee2a77b1bacd4c333bebea93610aaf17977be
treef1f5202b74a713a9f6e2751a933eb89a9cd1083c
parentac9a78681b921877518763ba0e89202254349d1b
i3c: master: svc: fix i3c suspend/resume issue

When system suspends, if i3c module is powered down, register
value will lose.
Need to save the key registers before system suspend.
So save these registers value in runtime pm suspend, and restore them
if these register's value is different with the saved values
when runtime pm resume.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20230517033030.3068085-1-xiaoning.wang@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/svc-i3c-master.c