From: Santosh Shilimkar <santosh.shilimkar@ti.com>
To: Kevin Hilman <khilman@deeprootsystems.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: Wed, 31 Oct 2012 16:35:52 +0530 [thread overview]
Message-ID: <50910610.5080602@ti.com> (raw)
In-Reply-To: <87vcdr2ah9.fsf@deeprootsystems.com>
On Wednesday 31 October 2012 04:07 PM, Kevin Hilman wrote:
> Santosh Shilimkar <santosh.shilimkar@ti.com> writes:
>
> [...]
>
>> Just to summaries, there are 3 things we are talking here.
>
> Santosh, thanks for the summary. You are right on.
>
>> 1. Delaying the idle with a timeout which $subject patch is
>> trying to do to reduce latency for interrupts. That itself
>> is reasonable.
>
> I agree, this is reasonable. IMO, adding autosuspend should be done as
> an isolated patch and kept separate from any other cleanup or changes.
>
> Also, as Jon mentioned, I think this should be done with a default
> timeout of zero so that current behaviour is unchanged. Tim can then
> set the timeout from userspace for his usecase and everyone is happy.
>
Default 0 sounds good to me as well.
>> 2. Removal of the bank "mod_usage" which is also clubbed
>> in $subject path. Ofcourse that break the current driver
>> for idle. So that change needs to be made with better thought
>> and in a separate patch. This is doable.
>
> I had this discussion with Charu/Tarun during the last round of cleanup
> because I didn't like this mod_usage either. The alternative is to do a
> 'get' for every GPIO in the bank since runtime PM is doing the
> usecounting already. As Santosh said, this is fine for suspend, but for
> idle it means calling 'put' for every enabled GPIO in the bank instead
> of just forcing things with a single 'put.'
>
Exactly. The oherhead becomes too much when if you need to call put like
6 Banks * 32 GPIOS times.
Actually even though there are 32 GPIOs in a bank, from PM point of
view, it only needs to care about a bank level control. Because
clocks and register set is per bank. And we model a GPIO device
per bank as well.
>> 3. Removing omap_gpio_[prepare/resume]_for_idle() with soome thing
>> better. For this one though, so far I have not come across a good
>> solution. Ideas/Solution is welcome !!
>
> I agree that the prepare/resume idle hooks a are ugly and should be
> removed, but this needs quite a bit more thought. In particular,
> the 'remove triggering' stuff that is done needs pretty close
> examination.
>
> I'm not saying it can't be done, but patches to do this should be
> separate, well described and well tested, especially with off-mode.
>
Couldn't agree more. Thanks for confirming the points.
Regards
santosh
next prev parent reply other threads:[~2012-10-31 11:06 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
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 [this message]
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=50910610.5080602@ti.com \
--to=santosh.shilimkar@ti.com \
--cc=balbi@ti.com \
--cc=jon-hunter@ti.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--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.