Re: [PATCH] spi: spi-mtk-nor: initialize spi controller after resume
From: Rex-BC Chen
Date: Tue Apr 12 2022 - 08:53:44 EST
On Tue, 2022-04-12 at 19:57 +0800, Allen-KH Cheng wrote:
> 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@xxxxxxxxxxxx>
> ---
Reviewed-by: Rex-BC Chen <rex-bc.chen@xxxxxxxxxxxx>