public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: Madhusudhan Chikkature <madhu.cr@ti.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH PM-0] ARM: OMAP3: HSMMC: Ensure HSMMC is fully reset on boot
Date: Thu, 18 Sep 2008 16:33:34 +0300	[thread overview]
Message-ID: <87r67ho9xt.fsf@deeprootsystems.com> (raw)
In-Reply-To: <002501c9198c$8ff08430$LocalHost@wipultra1303> (Madhusudhan Chikkature's message of "Thu\, 18 Sep 2008 18\:16\:23 +0530")

"Madhusudhan Chikkature" <madhu.cr@ti.com> writes:

> ----- Original Message ----- 
> From: "Kevin Hilman" <khilman@deeprootsystems.com>
> To: <linux-omap@vger.kernel.org>
> Cc: "Kevin Hilman" <khilman@deeprootsystems.com>
> Sent: Thursday, September 18, 2008 5:52 PM
> Subject: [PATCH PM-0] ARM: OMAP3: HSMMC: Ensure HSMMC is fully reset on boot
>
>
>> This ensures that an unused HSMMC block will not interfere with sleep.
>> 
>> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
>> ---
>> arch/arm/mach-omap2/hsmmc.c |    8 ++++++++
>> 1 files changed, 8 insertions(+), 0 deletions(-)
>> 
>> diff --git a/arch/arm/mach-omap2/hsmmc.c b/arch/arm/mach-omap2/hsmmc.c
>> index 7334d86..03fe820 100644
>> --- a/arch/arm/mach-omap2/hsmmc.c
>> +++ b/arch/arm/mach-omap2/hsmmc.c
>> @@ -280,8 +280,16 @@ static struct omap_mmc_platform_data hsmmc_data = {
>>  },
>> };
>> 
>> +static void __init hsmmc_reset(void)
>> +{
>> +       omap_writel(MMCHS_SYSCONFIG_SWRESET, MMCHS1_SYSCONFIG);
>> +       omap_writel(MMCHS_SYSCONFIG_SWRESET, MMCHS2_SYSCONFIG);
>> +       omap_writel(MMCHS_SYSCONFIG_SWRESET, MMCHS3_SYSCONFIG);
>> +}
>> +
> Where is MMCHS1_SYSCONFIG defined?

Oops, I sent this prematurely, indeed it doesn't compile. :(

> After seting the softreset bit in SYSCONFIG, you might want to poll
> on the RESETDONE bit in SYSSTATUS to wait for the reset to complete.

OK, I'll add that.

> The interface and functional clocks should be provided before the
> reset is issued for reset to complete. At this point, I guess the
> clocks are not enabled yet.

They're not enabled by the kernel, but I believe they are enabled by
the bootloader.  Are you suggesting I add explicit clk_enable|disable
calls?

Kevin


      reply	other threads:[~2008-09-18 13:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-18 12:22 [PATCH PM-0] ARM: OMAP3: HSMMC: Ensure HSMMC is fully reset on boot Kevin Hilman
2008-09-18 12:45 ` Felipe Balbi
2008-09-19  5:21   ` Högander Jouni
2008-09-22  5:26     ` Paul Walmsley
2008-09-18 12:46 ` Madhusudhan Chikkature
2008-09-18 13:33   ` Kevin Hilman [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=87r67ho9xt.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=madhu.cr@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox