[PATCH] spi: spi-mtk-nor: initialize spi controller after resume

allen-kh.cheng allen-kh.cheng at mediatek.com
Tue Apr 12 20:33:47 PDT 2022


Hi Mark,

On Tue, 2022-04-12 at 20:50 +0100, Mark Brown wrote:
> On Tue, 12 Apr 2022 19:57:43 +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().
> > 
> > [...]
> 
> Applied to
> 
>    
> https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git__;!!CTRNKA9wMg0ARbw!yMeMfZ19NoVygn0D8jzp0BcX0t6mWOG9BHPtCkD4VW8I24y8h9ZJKA7R-g5XFhDiXJnnCz0t18TJC-73vXyYW0m8CQ$
>   for-next
> 
> Thanks!
> 
> [1/1] spi: spi-mtk-nor: initialize spi controller after resume
>       commit: 317c2045618cc1f8d38beb8c93a7bdb6ad8638c6
> 
> All being well this means that it will be integrated into the linux-
> next
> tree (usually sometime in the next 24 hours) and sent to Linus during
> the next merge window (or sooner if it is a bug fix), however if
> problems are discovered then the patch may be dropped or reverted.
> 
> You may get further e-mails resulting from automated or manual
> testing
> and review of the tree, please engage with people reporting problems
> and
> send followup patches addressing any issues that are reported if
> needed.
> 
> If any updates are required or you are submitting further changes
> they
> should be sent as incremental updates against current git, existing
> patches will not be replaced.
> 
> Please add any relevant lists and maintainers to the CCs when
> replying
> to this mail.
> 
> Thanks,
> Mark

Sorry, There is one issue I want to correct in commit message.

"To handle both issues [etc]" should become something like:
"Solve this issue by reinitializing the registers right after resuming
the controller"

Do you mind help me modify commit message? or I can send a new PATCH to
correst this.

I apologize for any inconvenience caused.

Thanks,
Allen





More information about the Linux-mediatek mailing list