gpio: pca953x: use the correct register address to do regcache sync
stable inclusion from stable-v5.10.122 commit 04622d631826ba483ae3a0b8a71c745d8e21453d category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5W6OE Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=04622d631826ba483ae3a0b8a71c745d8e21453d -------------------------------- [ Upstream commit 43624eda ] For regcache_sync_region, need to use pca953x_recalc_addr() to get the real register address. Fixes: b7657430 ("gpio: pca953x: Restore registers after suspend/resume cycle") Signed-off-by: NHaibo Chen <haibo.chen@nxp.com> Signed-off-by: NBartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
Showing
想要评论请 注册 或 登录