All of lore.kernel.org
 help / color / mirror / Atom feed
From: Santosh Shilimkar <santosh.shilimkar@ti.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: Rajendra Nayak <rnayak@ti.com>, Kevin Hilman <khilman@ti.com>,
	linux-omap@vger.kernel.org, b-cousson@ti.com,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] OMAP4: clockdomain: Follow recommended enable sequence
Date: Mon, 04 Apr 2011 12:27:11 +0530	[thread overview]
Message-ID: <4D996BC7.2060007@ti.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1104040021530.8323@utopia.booyaka.com>

Paul,
On 4/4/2011 12:17 PM, Paul Walmsley wrote:
> On Fri, 1 Apr 2011, Rajendra Nayak wrote:
>
>> On 4/1/2011 8:21 PM, Rajendra Nayak wrote:
>>>>> In omap_hwmod.c:_enable(), what do you think about:
>>>>>
>>>>> 1. saving the current idle mode of the clockdomain,
>>>>>
>>>>> 2. forcing the clockdomain to software-supervised wakeup.
>>>>>
>>>>> 3. enabling clocks and waiting for the module as we currently do, then
>>>>>
>>>>> 4. switching the clockdomain's idle mode back to its original state?
>>>>>
>>>>> Seems like that would be a reasonable approach for the short term, at
>>>>> least for drivers that have been converted to PM runtime.
>>>>
>>>> Ok, I'll try and get some RFC patches in these lines soon.
>>>
>>> I tried some of what you were suggesting here and it seems to
>>> work well, like you said, for the drivers which are converted
>>> to PM runtime.
>>>
>>> Now the issue seems to be, how do we handle the ones which
>>> are *still* using clock framework to enable main clocks and
>>> are yet to be converted to PM runtime.
>>>
>>> One such, MMC, is showing me issues on OMAP4 even at boot
>>> and causes a crash.
>>>
>>> Its a different thing that some of these drivers which use
>>> direct clock calls are working by fluke on OMAP4 since the
>>> clock framework does not even wait for the modules to become
>>> accessible after the clock enable.
>>>
>>> I know the right way seems to be to get all these drivers
>>> converted to PM runtime, but that might take sometime.
>>
>> One way I am able to get this working (atleast MMC)
>> is by preventing the clock domain belonging to MMC module
>> from being programmed into HW_SUP mode.
>
> What programs the OMAP4 clockdomains into hwsup mode in the first place?

This is done as part of the OMAP4 PM series.

Regards
Santosh


WARNING: multiple messages have this Message-ID (diff)
From: santosh.shilimkar@ti.com (Santosh Shilimkar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] OMAP4: clockdomain: Follow recommended enable sequence
Date: Mon, 04 Apr 2011 12:27:11 +0530	[thread overview]
Message-ID: <4D996BC7.2060007@ti.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1104040021530.8323@utopia.booyaka.com>

Paul,
On 4/4/2011 12:17 PM, Paul Walmsley wrote:
> On Fri, 1 Apr 2011, Rajendra Nayak wrote:
>
>> On 4/1/2011 8:21 PM, Rajendra Nayak wrote:
>>>>> In omap_hwmod.c:_enable(), what do you think about:
>>>>>
>>>>> 1. saving the current idle mode of the clockdomain,
>>>>>
>>>>> 2. forcing the clockdomain to software-supervised wakeup.
>>>>>
>>>>> 3. enabling clocks and waiting for the module as we currently do, then
>>>>>
>>>>> 4. switching the clockdomain's idle mode back to its original state?
>>>>>
>>>>> Seems like that would be a reasonable approach for the short term, at
>>>>> least for drivers that have been converted to PM runtime.
>>>>
>>>> Ok, I'll try and get some RFC patches in these lines soon.
>>>
>>> I tried some of what you were suggesting here and it seems to
>>> work well, like you said, for the drivers which are converted
>>> to PM runtime.
>>>
>>> Now the issue seems to be, how do we handle the ones which
>>> are *still* using clock framework to enable main clocks and
>>> are yet to be converted to PM runtime.
>>>
>>> One such, MMC, is showing me issues on OMAP4 even at boot
>>> and causes a crash.
>>>
>>> Its a different thing that some of these drivers which use
>>> direct clock calls are working by fluke on OMAP4 since the
>>> clock framework does not even wait for the modules to become
>>> accessible after the clock enable.
>>>
>>> I know the right way seems to be to get all these drivers
>>> converted to PM runtime, but that might take sometime.
>>
>> One way I am able to get this working (atleast MMC)
>> is by preventing the clock domain belonging to MMC module
>> from being programmed into HW_SUP mode.
>
> What programs the OMAP4 clockdomains into hwsup mode in the first place?

This is done as part of the OMAP4 PM series.

Regards
Santosh

  reply	other threads:[~2011-04-04  6:57 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-04 13:25 [PATCH] OMAP4: clockdomain: Follow recommended enable sequence Rajendra Nayak
2011-03-04 13:25 ` Rajendra Nayak
2011-03-09  3:50 ` Paul Walmsley
2011-03-09  3:50   ` Paul Walmsley
2011-03-09 10:19   ` Rajendra Nayak
2011-03-09 10:19     ` Rajendra Nayak
2011-03-09 16:28     ` Kevin Hilman
2011-03-09 16:28       ` Kevin Hilman
2011-03-09 21:44     ` Paul Walmsley
2011-03-09 21:44       ` Paul Walmsley
2011-03-10 12:18     ` Paul Walmsley
2011-03-10 12:18       ` Paul Walmsley
2011-03-10 12:58       ` Rajendra Nayak
2011-03-10 12:58         ` Rajendra Nayak
2011-03-10 13:16         ` Paul Walmsley
2011-03-10 13:16           ` Paul Walmsley
     [not found]         ` <4D78CAFC.4080502-l0cyMroinI0@public.gmane.org>
2011-03-10 13:17           ` Paul Walmsley
2011-03-10 13:17             ` Paul Walmsley
     [not found]             ` <alpine.DEB.2.00.1103100609080.15132-rwI8Ez+7Ko+d5PgPZx9QOdBPR1lH4CV8@public.gmane.org>
2011-03-10 13:34               ` Ben Dooks
2011-03-10 13:34                 ` Ben Dooks
     [not found]                 ` <20110310133454.GF15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org>
2011-03-10 13:36                   ` Paul Walmsley
2011-03-10 13:36                     ` Paul Walmsley
2011-03-10 14:39       ` Paul Walmsley
2011-03-10 14:39         ` Paul Walmsley
2011-03-11 13:26         ` Rajendra Nayak
2011-03-11 13:26           ` Rajendra Nayak
2011-03-11 16:47           ` Kevin Hilman
2011-03-11 16:47             ` Kevin Hilman
2011-03-12  7:53             ` Rajendra Nayak
2011-03-12  7:53               ` Rajendra Nayak
2011-03-14 10:58               ` Rajendra Nayak
2011-03-14 10:58                 ` Rajendra Nayak
2011-03-21  8:51             ` Rajendra Nayak
2011-03-21  8:51               ` Rajendra Nayak
2011-03-28 17:04               ` Paul Walmsley
2011-03-28 17:04                 ` Paul Walmsley
2011-03-29  6:55                 ` Rajendra Nayak
2011-03-29  6:55                   ` Rajendra Nayak
2011-04-01 14:51                   ` Rajendra Nayak
2011-04-01 14:51                     ` Rajendra Nayak
2011-04-01 15:40                     ` Rajendra Nayak
2011-04-01 15:40                       ` Rajendra Nayak
2011-04-04  6:47                       ` Paul Walmsley
2011-04-04  6:47                         ` Paul Walmsley
2011-04-04  6:57                         ` Santosh Shilimkar [this message]
2011-04-04  6:57                           ` Santosh Shilimkar
2011-04-05 12:47                         ` Rajendra Nayak
2011-04-05 12:47                           ` Rajendra Nayak
2011-03-23 23:29           ` Paul Walmsley
2011-03-23 23:29             ` Paul Walmsley
2011-04-20 19:42           ` Paul Walmsley
2011-04-20 19:42             ` Paul Walmsley
2011-04-21  4:47             ` Santosh Shilimkar
2011-04-21  4:47               ` Santosh Shilimkar

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=4D996BC7.2060007@ti.com \
    --to=santosh.shilimkar@ti.com \
    --cc=b-cousson@ti.com \
    --cc=khilman@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.com \
    --cc=rnayak@ti.com \
    /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.