[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1560841301.21660.9.camel@suse.com>
Date: Tue, 18 Jun 2019 09:01:41 +0200
From: Oliver Neukum <oneukum@...e.com>
To: Pintu Agarwal <pintu.ping@...il.com>,
open list <linux-kernel@...r.kernel.org>,
linux-arm-kernel@...ts.infradead.org,
Kernelnewbies <kernelnewbies@...nelnewbies.org>,
linux-pm@...r.kernel.org
Subject: Re: [IMX] [DRM]: suspend/resume support
Am Montag, den 17.06.2019, 19:19 +0530 schrieb Pintu Agarwal:
> Currently, I am trying to understand what needs to be taken care
> during suspend/resume.
You need to take care of
* wakeup sources
* not requiring services of devices higher up in the tree.
> With some reference, I figured out that hdmi power off/on needs to be
> done during suspend/resume.
That would make sense.
First of all you need to understand that the generic model is, well,
generic. Now this may look like a tautology, so let me explain.
A generic model cannot tell you how to save power on a specific
hardware. It exists to model dependencies among subsystems and
to help you.
The suspend() call is a notification which tells you that the rest
of the system will not require your services until resume() is
called().
That means that after resume() your driver must be functional again.
And it means that between suspend() and resume() you cannot touch
your device because what is above you in the tree need not be
functional.
> But after resume, system is hanging.
> It seems like vblank events are not getting triggered after the resume.
> May be irq remains disabled after resume, I need to figure out some
> way to enable the all the irqs again.
In your case it looks like parts of dw_hdmi_imx_bind() need to be
redone in resume().
HTH
Oliver
Powered by blists - more mailing lists