From: Felipe Balbi <balbi@ti.com>
To: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: balbi@ti.com, Tim Niemeyer <tim.niemeyer@corscience.de>,
Jon Hunter <jon-hunter@ti.com>,
Linux OMAP List <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] gpio: omap-gpio: add support for pm_runtime autosuspend
Date: Mon, 29 Oct 2012 22:03:28 +0200 [thread overview]
Message-ID: <20121029200328.GE30152@arwen.pp.htv.fi> (raw)
In-Reply-To: <508E3D09.9090802@ti.com>
[-- Attachment #1: Type: text/plain, Size: 1767 bytes --]
Hi,
On Mon, Oct 29, 2012 at 01:53:37PM +0530, Santosh Shilimkar wrote:
> >>Just to expand a bit, Out of 6 GPIO banks, GPIO1 bank is in always ON
> >>domain where as remaing 5 are in peripheral domain. Letting individual
> >>banks idle allowed you let the clock domain idle than keeping all the
> >>6 banks and hence respective clock/power domain in ON state.
> >>
> >>So the adding timeout might be reasonable but I am not sure about
> >>the mod_usage change here.
> >
> >IMHO that whole mod_usage is broken. I remember sending a big series of
> >patches getting rid of that long ago. I _did_ break a few things but
> >just because of omap_gpio_prepare_for_idle() /
> >omap_gpio_resume_from_idle() hackery to get GPIO suspended early enough.
> >
> Well so far I haven't seen/come across a patch/proposal which fixes it.
fair point
> >I still think mod_usage needs to go, so does
> >omap_gpio_prepare_for_idle() and omap_gpio_resume_from_idle(). To me, it
> >looks like that needs to be done on ->prepare()/->complete() callbacks
> >of system suspend and the gpio driver needs to learn proper runtime
> >suspend.
> >
> I am not saying it shouldn't go :-)
> The $subject patch isn't fixing it correctly is what I said.
>
> Don't get hung up on suspend case because thats the easiest
> way to address it. The issue is with idle where GPIO can prevent
> SOC idle if it isn't taken care. And since its just an IO, its not
> easy to implement something like inactivity timer towards
> autosupend.
I don't see the relation here. Care to expand a bit ?
> Co-processor also makes use of GPIO via syslink proxy and thats
> make things even harder.
that's supposed to be solved with hwspinlock, isn't it ?
cheers
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-10-29 20:09 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-26 7:55 [PATCH] gpio: omap-gpio: add support for pm_runtime autosuspend Tim Niemeyer
2012-10-26 8:03 ` Felipe Balbi
2012-10-26 10:42 ` Tim Niemeyer
2012-10-26 11:42 ` Felipe Balbi
2012-10-26 13:19 ` Tim Niemeyer
2012-10-26 20:01 ` Felipe Balbi
2012-10-26 21:39 ` Jon Hunter
2012-10-27 10:58 ` Santosh Shilimkar
2012-10-29 8:52 ` Tim Niemeyer
2012-10-29 6:47 ` Santosh Shilimkar
2012-10-29 8:05 ` Felipe Balbi
2012-10-29 8:23 ` Santosh Shilimkar
2012-10-29 20:03 ` Felipe Balbi [this message]
2012-10-30 6:32 ` Santosh Shilimkar
2012-10-30 7:09 ` Felipe Balbi
2012-10-30 14:16 ` Jon Hunter
2012-10-30 15:10 ` Felipe Balbi
2012-10-31 10:15 ` Jon Hunter
2012-10-31 10:15 ` Felipe Balbi
2012-10-31 10:37 ` Kevin Hilman
2012-10-31 11:05 ` Santosh Shilimkar
2012-10-29 8:43 ` Tim Niemeyer
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=20121029200328.GE30152@arwen.pp.htv.fi \
--to=balbi@ti.com \
--cc=jon-hunter@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=santosh.shilimkar@ti.com \
--cc=tim.niemeyer@corscience.de \
/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.