Re: [PATCH] spi: sprd: add runtime pm for transfer message

2020-11-01 Thread Chunyan Zhang
On Fri, 30 Oct 2020 at 21:42, Mark Brown wrote: > > On Fri, Oct 30, 2020 at 03:24:44PM +0800, Chunyan Zhang wrote: > > From: Bangzheng Liu > > > > Before transfer one message, spi core would set chipselect, sprd spi > > device should be resumed from runtime suspend, otherwise kernel would > >

Re: [PATCH] spi: sprd: add runtime pm for transfer message

2020-10-30 Thread Mark Brown
On Fri, Oct 30, 2020 at 03:24:44PM +0800, Chunyan Zhang wrote: > From: Bangzheng Liu > > Before transfer one message, spi core would set chipselect, sprd spi > device should be resumed from runtime suspend, otherwise kernel would > crash once access spi registers. The sprd spi device can be

[PATCH] spi: sprd: add runtime pm for transfer message

2020-10-30 Thread Chunyan Zhang
From: Bangzheng Liu Before transfer one message, spi core would set chipselect, sprd spi device should be resumed from runtime suspend, otherwise kernel would crash once access spi registers. The sprd spi device can be suspended until clearing chipselect which would be executed after transfer.