Re: [PATCH] video: s3c-fb: Make runtime PM functional again
From: Mark Brown
Date: Tue Dec 27 2011 - 05:32:30 EST
On Tue, Dec 27, 2011 at 01:40:47PM +0900, Jingoo Han wrote:
> > While this does make things simpler (the main motivation for the
> > original change) it will not only cause us to use more power in the
> > framebuffer controller but will also prevent us entering lower power
> > domain and SoC wide states as we can never power down the domain
> > containing the device. Since neither of these things is desirable
> > revert the change.
> The main difference is as follows:
> If no fb windows are opened.
> - Your patch: LCD block power is off
> - My patch: LCD block power is on still.
By holding the LCD block power on your patch will also prevent the SoC
using lower power modes like STOP and DEEP-STOP on the S3C6410.
> However, after booting, probing, open is called from platform system, soon.
> And, the default window is always opened. This means that at least one window
This only happens if you enable CONFIG_FRAMEBUFFER_CONSOLE as that
causes the console code to become a framebuffer client.
> is opened after booting. So, I don't think that "video: s3c-fb: modify runtime
> pm functions" (commit: 35784b) cause us to use more power in the framebuffer
> controller.
If the console isn't using the framebuffer then whenever userspace
releases we'll be able to runtime suspend the framebuffer. This isn't
ideal as what userspace expects is that it can hold the device open and
use blanking to save power - I'm working on patches to do this - but
it's a start.
> My intention is that runtime pm is used only for LCD block power off when
> suspend and resume are called.
This isn't runtime PM at all, it's system PM which for some reason calls
runtime PM functions. At best the runtime PM calls won't do anything as
they're inhibited during system PM.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/