From: Ulf Hansson <ulf.hansson@linaro.org>
To: Saravana Kannan <skannan@codeaurora.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Grant Likely <grant.likely@secretlab.ca>,
Mike Turquette <mturquette@linaro.org>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
linux-arm-msm@vger.kernel.org,
Stephen Boyd <sboyd@codeaurora.org>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 1/2] clk: Disable unused clocks after deferred probing is done
Date: Thu, 16 May 2013 14:55:46 +0200 [thread overview]
Message-ID: <CAPDyKFqyvfuttH=rGLxBCemgRMq4N3fVktom+RB2wm72NruaDA@mail.gmail.com> (raw)
In-Reply-To: <519461BB.3010209@codeaurora.org>
On 16 May 2013 06:34, Saravana Kannan <skannan@codeaurora.org> wrote:
> On 05/09/2013 11:35 AM, Saravana Kannan wrote:
>>
>> With deferred probing, late_initcall() is too soon to declare a clock as
>> unused. Wait for deferred probing to finish before declaring a clock as
>> unused. Since deferred probing is done in late_initcall(), do the unused
>> check to late_initcall_sync.
>>
>> Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
>> ---
>> drivers/clk/clk.c | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
>> index fe4055f..5ecb64c 100644
>> --- a/drivers/clk/clk.c
>> +++ b/drivers/clk/clk.c
>> @@ -534,7 +534,7 @@ static int clk_disable_unused(void)
>>
>> return 0;
>> }
>> -late_initcall(clk_disable_unused);
>> +late_initcall_sync(clk_disable_unused);
Without giving this too much thinking... Will boot time be affected
with this change?
Kind regards
Ulf Hansson
>>
>> /*** helper functions ***/
>
>
> Mike,
>
> Thoughts? Picking it up? Removing the existing auto-disable code (I think
> they are still useful)?
>
> -Saravana
>
>
> --
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> hosted by The Linux Foundation
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2013-05-16 12:55 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-09 5:18 [PATCH 0/3] Fix disable of unused clk/regulator with deferred probe Saravana Kannan
2013-05-09 5:18 ` [PATCH 1/3] driver core: Add API to wait for deferred probe to complete during init Saravana Kannan
2013-05-09 10:07 ` Ming Lei
2013-05-09 11:50 ` Grant Likely
2013-05-09 13:50 ` Mark Brown
2013-05-09 14:14 ` Russell King - ARM Linux
2013-05-09 14:37 ` Mark Brown
2013-05-09 15:07 ` Russell King - ARM Linux
2013-05-09 15:43 ` Mark Brown
2013-05-09 18:39 ` Jean-Christophe PLAGNIOL-VILLARD
2013-05-09 16:39 ` Grant Likely
2013-05-10 9:30 ` Mark Brown
2013-05-09 16:52 ` Saravana Kannan
2013-05-09 18:09 ` Grant Likely
2013-05-09 18:12 ` Saravana Kannan
2013-05-09 14:32 ` Ming Lei
2013-05-09 5:18 ` [PATCH 2/3] clk: Disable unused clocks after deferred probing is done Saravana Kannan
2013-05-09 5:18 ` [PATCH 3/3] regulator: core: Disable unused regulators " Saravana Kannan
2013-05-09 18:35 ` [PATCH v2 1/2] clk: Disable unused clocks " Saravana Kannan
2013-05-10 6:45 ` Jean-Christophe PLAGNIOL-VILLARD
2013-05-10 23:03 ` Saravana Kannan
2013-05-22 10:35 ` Jean-Christophe PLAGNIOL-VILLARD
2013-05-16 4:34 ` Saravana Kannan
2013-05-16 12:55 ` Ulf Hansson [this message]
2013-05-16 19:23 ` Saravana Kannan
2013-05-29 7:51 ` Mike Turquette
2013-05-30 1:46 ` Saravana Kannan
2013-05-09 18:35 ` [PATCH 2/2] regulator: core: Disable unused regulators " Saravana Kannan
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='CAPDyKFqyvfuttH=rGLxBCemgRMq4N3fVktom+RB2wm72NruaDA@mail.gmail.com' \
--to=ulf.hansson@linaro.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=grant.likely@secretlab.ca \
--cc=gregkh@linuxfoundation.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@linaro.org \
--cc=sboyd@codeaurora.org \
--cc=skannan@codeaurora.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).