Re: [PATCH] spi: add runtime PM for transfer_one_message

2020-11-03 Thread Mark Brown
On Tue, Nov 03, 2020 at 03:30:24PM +0800, Chunyan Zhang wrote: > On Tue, 3 Nov 2020 at 02:17, Mark Brown wrote: > > the error situation here? This code has been around for a while and I'm > > not aware of reports of issues here and I can't see anything unusual > > that the Spreadtrum driver is d

Re: [PATCH] spi: add runtime PM for transfer_one_message

2020-11-02 Thread Chunyan Zhang
On Tue, 3 Nov 2020 at 02:17, Mark Brown wrote: > > On Mon, Nov 02, 2020 at 07:22:39PM +0800, Chunyan Zhang wrote: > > From: Chunyan Zhang > > > Before transfer message, spi devices probably have been in runtime > > suspended, > > that would cause the kernel crash on some platforms once access sp

Re: [PATCH] spi: add runtime PM for transfer_one_message

2020-11-02 Thread Mark Brown
On Mon, Nov 02, 2020 at 07:22:39PM +0800, Chunyan Zhang wrote: > From: Chunyan Zhang > Before transfer message, spi devices probably have been in runtime suspended, > that would cause the kernel crash on some platforms once access spi > registers, such as on Unisoc's SoCs. The spi devices can be

[PATCH] spi: add runtime PM for transfer_one_message

2020-11-02 Thread Chunyan Zhang
From: Chunyan Zhang Before transfer message, spi devices probably have been in runtime suspended, that would cause the kernel crash on some platforms once access spi registers, such as on Unisoc's SoCs. The spi devices can be suspended until message transfer completed. Also this patch move the A