From: davidb@codeaurora.org (David Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC] the right way to use gpiolib hooks to automate power management?
Date: Thu, 12 Aug 2010 13:48:11 -0700 [thread overview]
Message-ID: <20100812204811.GA31315@huya.qualcomm.com> (raw)
In-Reply-To: <20100812182744.GC31982@n2100.arm.linux.org.uk>
On Thu, Aug 12, 2010 at 07:27:44PM +0100, Russell King - ARM Linux wrote:
> On Thu, Aug 12, 2010 at 09:39:29AM -0700, Gregory Bean wrote:
> > We have a written a software driver which reference-counts these gpio
> > lines (via a put()/get() api), putting them in their "high-power" active
> > configurations when they're in use, and dropping them down into a
> > high-impedance low-power setting when they're not.
>
> Beware. What you're suggesting can lead to an increase in power
> consumption rather than the reduction you're looking for.
That probably just got a little obscured, since I think Greg is more
concerned with the mechanism in software. Our gpio's are generally
configured in "low power" to be high-impedance with a pull-up or
pull-down, depending on what it is hooked to. They can be configured
in most of the ways that would make sense to do so.
It may be the case, though, that what this "low power" mode is might
need to also be configurable, since it likely depends on how the pin
is connected.
David
prev parent reply other threads:[~2010-08-12 20:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 16:39 [RFC] the right way to use gpiolib hooks to automate power management? Gregory Bean
2010-08-12 18:27 ` Russell King - ARM Linux
2010-08-12 20:48 ` David Brown [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=20100812204811.GA31315@huya.qualcomm.com \
--to=davidb@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).