All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Pavel Machek <pavel@ucw.cz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ordering of suspend/resume for devices.  any clues, anyone?
Date: Wed, 21 Dec 2005 22:49:39 +0000	[thread overview]
Message-ID: <20051221224939.GI8496@lkcl.net> (raw)
In-Reply-To: <20051221102109.GB1735@elf.ucw.cz>

heya pavel,

thanks for the tip.  as it turns out, a function table was hacked-n
that back-link from the w100fb framebuffer resume function into the
LCD code.

in this way, it is possible to call functions in the LCD module
doing GPIO to start the power-up sequence required for the
LCD and backlight, wait a few ms, initialise the video chip
(in the w100fb code), then call _another_ set of functions in
the LCD module to finish off the initialisation.

not pretty, but there you go.

l.

On Wed, Dec 21, 2005 at 11:21:09AM +0100, Pavel Machek wrote:
> Hi!
> 
> > [hi, please kindly cc me direct as i am deliberately subscribed with
> > settings to not receive posts from this list, but if that is inconvenient
> > for you to cc me, don't worry i can always look up the archives
> > to keep track of replies, thank you.]
> > 
> > http://handhelds.org/moin/moin.cgi/BlueAngel
> > 
> > works.
> > 
> > am seeking some advice regarding power management - specifically
> > the ordering of devices "resume" functions being called.
> > 
> > we have an LCD, and an ATI chip.  switching on the LCD powers up
> > the ATI chip.
> > 
> > unfortunately, resume calls the ATI device initialisation
> > _before_ the LCD resume initialisation.  the ATI chip's
> > initialisation fails - naturally - because it's not even
> > powered up.
> 
> I'd say "make LCD system/platform device". That will init it first,
> shut it down last.
> 							Pavel
> 
> -- 
> Thanks, Sharp!

-- 
--
<a href="http://lkcl.net">http://lkcl.net</a>
--

      reply	other threads:[~2005-12-21 22:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-15 14:31 ordering of suspend/resume for devices. any clues, anyone? Luke Kenneth Casson Leighton
2005-12-15 18:37 ` Greg KH
2005-12-15 19:47   ` Luke Kenneth Casson Leighton
2005-12-21 10:21 ` Pavel Machek
2005-12-21 22:49   ` Luke Kenneth Casson Leighton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051221224939.GI8496@lkcl.net \
    --to=lkcl@lkcl.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.