[PATCH v2] imx-drm: imx-drm-core: add suspend/resume support

2014-08-19 Thread Shawn Guo
On Mon, Aug 18, 2014 at 03:11:54PM +0200, Andrzej Hajda wrote: > On 08/18/2014 02:58 PM, Andrzej Hajda wrote: > > .load hook is called after all components are attached to the master. > > So if suspend happen after probe of the master and before attaching the last > > component you will have NULL h

[PATCH v2] imx-drm: imx-drm-core: add suspend/resume support

2014-08-19 Thread Russell King - ARM Linux
On Tue, Aug 19, 2014 at 04:16:41AM -0500, Greg KH wrote: > On Tue, Aug 19, 2014 at 09:08:08AM +0100, Russell King - ARM Linux wrote: > > On Mon, Aug 18, 2014 at 02:25:34PM +0800, Shawn Guo wrote: > > > On Fri, Jul 25, 2014 at 02:20:40PM +0800, Shawn Guo wrote: > > > > HDMI currently stops working a

[PATCH v2] imx-drm: imx-drm-core: add suspend/resume support

2014-08-19 Thread Russell King - ARM Linux
On Mon, Aug 18, 2014 at 02:25:34PM +0800, Shawn Guo wrote: > On Fri, Jul 25, 2014 at 02:20:40PM +0800, Shawn Guo wrote: > > HDMI currently stops working after a system suspend/resume cycle. The > > cause is that the mode setting states in hardware gets lost and isn't > > restored across the suspen

[PATCH v2] imx-drm: imx-drm-core: add suspend/resume support

2014-08-19 Thread Greg KH
On Tue, Aug 19, 2014 at 09:08:08AM +0100, Russell King - ARM Linux wrote: > On Mon, Aug 18, 2014 at 02:25:34PM +0800, Shawn Guo wrote: > > On Fri, Jul 25, 2014 at 02:20:40PM +0800, Shawn Guo wrote: > > > HDMI currently stops working after a system suspend/resume cycle. The > > > cause is that the

[PATCH v2] imx-drm: imx-drm-core: add suspend/resume support

2014-08-18 Thread Shawn Guo
Hi Andrzej, On Mon, Aug 18, 2014 at 09:43:19AM +0200, Andrzej Hajda wrote: > > diff --git a/drivers/staging/imx-drm/imx-drm-core.c > > b/drivers/staging/imx-drm/imx-drm-core.c > > index def8280d7ee6..ab41152089a3 100644 > > --- a/drivers/staging/imx-drm/imx-drm-core.c > > +++ b/drivers/staging/im

[PATCH v2] imx-drm: imx-drm-core: add suspend/resume support

2014-08-18 Thread Andrzej Hajda
On 08/18/2014 02:58 PM, Andrzej Hajda wrote: > On 08/18/2014 02:38 PM, Shawn Guo wrote: >> Hi Andrzej, >> >> On Mon, Aug 18, 2014 at 09:43:19AM +0200, Andrzej Hajda wrote: diff --git a/drivers/staging/imx-drm/imx-drm-core.c b/drivers/staging/imx-drm/imx-drm-core.c index def8280d7ee6

[PATCH v2] imx-drm: imx-drm-core: add suspend/resume support

2014-08-18 Thread Andrzej Hajda
On 08/18/2014 02:38 PM, Shawn Guo wrote: > Hi Andrzej, > > On Mon, Aug 18, 2014 at 09:43:19AM +0200, Andrzej Hajda wrote: >>> diff --git a/drivers/staging/imx-drm/imx-drm-core.c >>> b/drivers/staging/imx-drm/imx-drm-core.c >>> index def8280d7ee6..ab41152089a3 100644 >>> --- a/drivers/staging/imx-d

[PATCH v2] imx-drm: imx-drm-core: add suspend/resume support

2014-08-18 Thread Shawn Guo
On Fri, Jul 25, 2014 at 02:20:40PM +0800, Shawn Guo wrote: > HDMI currently stops working after a system suspend/resume cycle. The > cause is that the mode setting states in hardware gets lost and isn't > restored across the suspend/resume cycle. > > The patch adds a very basic suspend/resume sup

[PATCH v2] imx-drm: imx-drm-core: add suspend/resume support

2014-08-18 Thread Andrzej Hajda
Hi Shawn, On 07/25/2014 08:20 AM, Shawn Guo wrote: > HDMI currently stops working after a system suspend/resume cycle. The > cause is that the mode setting states in hardware gets lost and isn't > restored across the suspend/resume cycle. > > The patch adds a very basic suspend/resume support t

[PATCH v2] imx-drm: imx-drm-core: add suspend/resume support

2014-07-25 Thread Shawn Guo
HDMI currently stops working after a system suspend/resume cycle. The cause is that the mode setting states in hardware gets lost and isn't restored across the suspend/resume cycle. The patch adds a very basic suspend/resume support to imx-drm driver, and calls drm_helper_resume_force_mode() in .