diff options
author | Allen-KH Cheng <allen-kh.cheng@mediatek.com> | 2022-04-12 14:57:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-27 15:38:52 +0300 |
commit | 76900a136b1a603add1f39fe4cf0df5cbe9a10d9 (patch) | |
tree | 413e9e4c5a67d4d30ef662b7a7431a770ba0ff4c /net | |
parent | 84e77e72367f6f2d293b80b18da84d587e86382f (diff) | |
download | linux-76900a136b1a603add1f39fe4cf0df5cbe9a10d9.tar.xz |
spi: spi-mtk-nor: initialize spi controller after resume
[ Upstream commit 317c2045618cc1f8d38beb8c93a7bdb6ad8638c6 ]
After system resumes, the registers of nor controller are
initialized with default values. The nor controller will
not function properly.
To handle both issues above, we add mtk_nor_init() in
mtk_nor_resume after pm_runtime_force_resume().
Fixes: 3bfd9103c7af ("spi: spi-mtk-nor: Add power management support")
Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Link: https://lore.kernel.org/r/20220412115743.22641-1-allen-kh.cheng@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions