[Freedreno] [PATCH v6] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-06-04 Thread Kalyan Thota
"The PM core always increments the runtime usage counter before calling the ->suspend() callback and decrements it after calling the ->resume() callback" DPU and DSI are managed as runtime devices. When suspend is triggered, PM core adds a refcount on all the devices and calls device suspend, sinc

Re: [Freedreno] [PATCH v6] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-06-04 Thread Doug Anderson
Hi, On Thu, Jun 4, 2020 at 6:20 AM Kalyan Thota wrote: > > -#ifdef CONFIG_PM > -static int msm_runtime_suspend(struct device *dev) > +#ifdef CONFIG_PM_SLEEP > +static int msm_pm_suspend(struct device *dev) > { > - struct drm_device *ddev = dev_get_drvdata(dev); > - struct msm_drm_pri