[PATCHv2 1/2] drm: atmel-hlcdc: Add PM suspend/resume support

2015-02-22 Thread Sylvain Rochet
Hello Andrzej, On Tue, Feb 17, 2015 at 10:47:23AM +0100, Andrzej Hajda wrote: > On 02/12/2015 09:49 PM, Sylvain Rochet wrote: > > +static int atmel_hlcdc_dc_resume(struct drm_device *dev) > > +{ > > + struct drm_crtc *crtc; > > + > > + drm_modeset_lock_all(dev); > > + > > + list_for_each_ent

[PATCHv2 1/2] drm: atmel-hlcdc: Add PM suspend/resume support

2015-02-17 Thread Andrzej Hajda
Hi Sylvain, Few comments below. On 02/12/2015 09:49 PM, Sylvain Rochet wrote: > On suspend: switch off CRTC if not already suspended with runtime PM > > On resume: switch on CRTC if we were not already suspended from runtime > PM while suspending. > > Signed-off-by: Sylvain Rochet > --- > dri

[PATCHv2 1/2] drm: atmel-hlcdc: Add PM suspend/resume support

2015-02-12 Thread Sylvain Rochet
On suspend: switch off CRTC if not already suspended with runtime PM On resume: switch on CRTC if we were not already suspended from runtime PM while suspending. Signed-off-by: Sylvain Rochet --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 60 1 file changed, 60