]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: pca953x: use the correct register address to do regcache sync
authorHaibo Chen <haibo.chen@nxp.com>
Mon, 30 May 2022 10:48:48 +0000 (18:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:13 +0000 (18:36 +0200)
commit95bc6324f1b640187c810083113b7d71da2383d9
treeba3ccc0a0ae4e07baab4a972b9226c2a25b44a1f
parent98ebc46574f7899feb021cfda02457d4e252da8b
gpio: pca953x: use the correct register address to do regcache sync

[ Upstream commit 830740e6bd064b99f870f20f7028e6175659fc03 ]

For regcache_sync_region, need to use pca953x_recalc_addr() to get
the real register address.

Fixes: eb22e835f4d8 ("gpio: pca953x: Restore registers after suspend/resume cycle")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-pca953x.c