public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: John Rigby <jcrigby@gmail.com>
Cc: Madhusudhan <madhu.cr@ti.com>,
	Mike Rapoport <mike@compulab.co.il>,
	Dirk Behme <dirk.behme@googlemail.com>,
	Phaneendra Kumar Alapati <phani@embwise.com>,
	linux-omap@vger.kernel.org, linux-mmc@vger.kernel.org,
	Adrian Hunter <adrian.hunter@nokia.com>,
	"Paasikivi Teemu.3 (EXT-Ixonos/Tampere)"
	<ext-teemu.3.paasikivi@nokia.com>
Subject: Re: sdio irq hack for omap_hsmmc.c (was: Re: [PATCH] OMAP35xx:SDIO  IRQ Support for OMAP35xx)
Date: Thu, 28 Jan 2010 16:13:03 -0800	[thread overview]
Message-ID: <87fx5prcog.fsf@deeprootsystems.com> (raw)
In-Reply-To: <4b73d43f1001271556m5945d358v2ca5bea5862b0080@mail.gmail.com> (John Rigby's message of "Wed\, 27 Jan 2010 16\:56\:28 -0700")

John Rigby <jcrigby@gmail.com> writes:

> Just to be clear, my post was in response to the reported problems
> with enabling sdio irqs with this patch:
> http://patchwork.kernel.org/patch/69122/
>
> The patch originator reported good results but others reported
> complete failure.  My hack fixed the problem for me.  I believe this
> much more modest patch will also fix the problem but it is untested
> because I don't have a board running right now.  Beware, I'm sending
> this from gmail so it may get line wrapped but it is a trivial patch
> so I think it is understandable.
>
> John
>
> diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
> index fa94580..7af970e 100644
> --- a/drivers/mmc/host/omap_hsmmc.c
> +++ b/drivers/mmc/host/omap_hsmmc.c
> @@ -1727,10 +1727,16 @@ static int __init omap_hsmmc_probe
>
>  	omap_hsmmc_context_save(host);
>
> +#if 0
>  	mmc->caps |= MMC_CAP_DISABLE;
>  	mmc_set_disable_delay(mmc, OMAP_MMC_DISABLED_TIMEOUT);
>  	/* we start off in DISABLED state */
>  	host->dpm_state = DISABLED;
> +#else
> +	/* we start off in ENABLED state */
> +	host->dpm_state = ENABLED;
> +	clk_enable(host->fclk);
> +#endif

I'm guessing this simply causes the clock usage count to never hit zero
thus never disabling clocks.

Kevin

>  	if (mmc_host_enable(host->mmc) != 0) {
>  		clk_put(host->iclk);
>
>
> On Wed, Jan 27, 2010 at 4:14 PM, Madhusudhan <madhu.cr@ti.com> wrote:
>> It is hard to comment on what is happening here without a patch. Is it a
>> performance issue or that SDIO functionality failure with PM enabled?
>>
>> The MMC controller supports wakeup capability on the dat1 line using a GPIO
>> for a SDIO interrupt. I guess that should help.
>>
>> Regards,
>> Madhu
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2010-01-29  0:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-26 17:04 sdio irq hack for omap_hsmmc.c (was: Re: [PATCH] OMAP35xx:SDIO IRQ Support for OMAP35xx) John Rigby
2010-01-27 23:14 ` Madhusudhan
2010-01-27 23:56   ` John Rigby
2010-01-28 23:52     ` Madhusudhan
2010-01-29  0:13     ` 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=87fx5prcog.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=adrian.hunter@nokia.com \
    --cc=dirk.behme@googlemail.com \
    --cc=ext-teemu.3.paasikivi@nokia.com \
    --cc=jcrigby@gmail.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=madhu.cr@ti.com \
    --cc=mike@compulab.co.il \
    --cc=phani@embwise.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