Re: [PATCH 1/2] ASoC: fsl: sai: Add support for runtime pm

2019-04-20 Thread Nicolin Chen
On Sat, Apr 20, 2019 at 03:59:04PM +, Daniel Baluta wrote: > @@ -898,6 +899,8 @@ static int fsl_sai_probe(struct platform_device *pdev) > > platform_set_drvdata(pdev, sai); > > + pm_runtime_enable(&pdev->dev); You will need pm_runtime_disable() somewhere, like remove(). Thanks

[PATCH 1/2] ASoC: fsl: sai: Add support for runtime pm

2019-04-20 Thread Daniel Baluta
Basically the same actions as for system PM, so make use of pm_runtime_force_suspend/pm_runtime_force_resume. Signed-off-by: Shengjiu Wang Signed-off-by: Daniel Baluta --- sound/soc/fsl/fsl_sai.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/sound/soc/fsl