Re: [PATCH] ASoC: fsl_esai: Add pm runtime function

2019-04-18 Thread S.j. Wang
Hi > On Thu, Apr 18, 2019 at 10:15:24AM +, S.j. Wang wrote: > > > On Thu, Apr 18, 2019 at 02:00:12AM -0700, Nicolin Chen wrote: > > > > On Thu, Apr 18, 2019 at 03:29:09AM +, S.j. Wang wrote: > > > > > Just for curiosity, we had similar situation on imx6sx, so we > > > > added suspend/resu

Re: [PATCH] ASoC: fsl_esai: Add pm runtime function

2019-04-18 Thread S.j. Wang
Hi > > > On Thu, Apr 18, 2019 at 03:29:09AM +, S.j. Wang wrote: > > In imx8 when systerm enter suspend state, the power of subsystem will > > be off, the clock enable state will be lost and register configuration > > Just for curiosity, we had similar situation on imx6sx, so we added > suspe

Re: [PATCH] ASoC: fsl_esai: Add pm runtime function

2019-04-18 Thread Mark Brown
On Thu, Apr 18, 2019 at 10:15:24AM +, S.j. Wang wrote: > > On Thu, Apr 18, 2019 at 02:00:12AM -0700, Nicolin Chen wrote: > > > On Thu, Apr 18, 2019 at 03:29:09AM +, S.j. Wang wrote: > > > Just for curiosity, we had similar situation on imx6sx, so we added > > > suspend/resume with regcache

Re: [PATCH] ASoC: fsl_esai: Add pm runtime function

2019-04-18 Thread S.j. Wang
Hi > > On Thu, Apr 18, 2019 at 02:00:12AM -0700, Nicolin Chen wrote: > > On Thu, Apr 18, 2019 at 03:29:09AM +, S.j. Wang wrote: > > > > In imx8 when systerm enter suspend state, the power of subsystem > > > will be off, the clock enable state will be lost and register > > > configuration >

Re: [PATCH] ASoC: fsl_esai: Add pm runtime function

2019-04-18 Thread Mark Brown
On Thu, Apr 18, 2019 at 02:00:12AM -0700, Nicolin Chen wrote: > On Thu, Apr 18, 2019 at 03:29:09AM +, S.j. Wang wrote: > > In imx8 when systerm enter suspend state, the power of subsystem will > > be off, the clock enable state will be lost and register configuration > Just for curiosity, we

Re: [PATCH] ASoC: fsl_esai: Add pm runtime function

2019-04-18 Thread Nicolin Chen
On Thu, Apr 18, 2019 at 03:29:09AM +, S.j. Wang wrote: > In imx8 when systerm enter suspend state, the power of subsystem will > be off, the clock enable state will be lost and register configuration Just for curiosity, we had similar situation on imx6sx, so we added suspend/resume with regcac

[PATCH] ASoC: fsl_esai: Add pm runtime function

2019-04-17 Thread S.j. Wang
In imx8 when systerm enter suspend state, the power of subsystem will be off, the clock enable state will be lost and register configuration will be lost. So the driver need to enter runtime suspend state in suspend. With this implementation the suspend function almost same as runtime suspend func