All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: "Chikkature Rajashekar, Madhusudhan" <madhu.cr@ti.com>,
	"Adrian Hunter" <adrian.hunter@nokia.com>,
	"Benoît Cousson" <b-cousson@ti.com>,
	"Kishore Kadiyala" <kishore.kadiyala@ti.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"sawant@ti.com" <sawant@ti.com>,
	"Kristo Tero (Nokia-D/Tampere)" <Tero.Kristo@nokia.com>
Subject: Re: OMAP HSMMC problems with off-mode
Date: Thu, 09 Dec 2010 09:50:23 -0800	[thread overview]
Message-ID: <87zkseal9c.fsf@deeprootsystems.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1012071548490.13430@utopia.booyaka.com> (Paul Walmsley's message of "Tue, 7 Dec 2010 15:56:37 -0700 (MST)")

Paul Walmsley <paul@pwsan.com> writes:

> Hi,
>
> On Tue, 7 Dec 2010, Chikkature Rajashekar, Madhusudhan wrote:
>
>> On Tue, Dec 7, 2010 at 1:51 PM, Adrian Hunter <adrian.hunter@nokia.com> wrote:
>> >
>> > It is at least because omap_pm_get_dev_context_loss_count() is not
>> > implemented.  Tero Kristo was looking at that recently.
>> >
>> 
>> Yes. I agree that is the problem. In the .32 kernel I had hooked it to
>> "get_last_off_on_transaction_id" which helped.
>> But that functionality does not exist anymore. So something equivalent
>> to tell the driver when the OFF was hit will make it work.
>
> OK, let's see if we can get that fixed in at least some trivial 
> way for 2.6.38.  While working on this, I applied this trivial patch:
>
> diff --git a/arch/arm/plat-omap/omap-pm-noop.c b/arch/arm/plat-omap/omap-pm-noop.c
> index e129ce8..781aa5f 100644
> --- a/arch/arm/plat-omap/omap-pm-noop.c
> +++ b/arch/arm/plat-omap/omap-pm-noop.c
> @@ -30,6 +30,8 @@ struct omap_opp *dsp_opps;
>  struct omap_opp *mpu_opps;
>  struct omap_opp *l3_opps;
>  
> +static int dummy_context_loss_counter;
> +
>  /*
>   * Device-driver-originated constraints (via board-*.c files)
>   */
> @@ -303,7 +305,7 @@ int omap_pm_get_dev_context_loss_count(struct device *dev)
>  	 * off counter.
>  	 */
>  
> -	return 0;
> +	return dummy_context_loss_counter++;
>  }
>  
>  
>
> ... which causes drivers to believe that device context has been lost 
> after each call to omap_pm_get_dev_context_loss_count().  Brutal, but 
> effective for chasing out context save/restore bugs.  

Tested-by: Kevin Hilman <khilman@deeprootsystems.com>

I verified that this, in combination with your other patch[1] results in
working off-suspend with MMC on 34xx/n900, 35xx/beagle and 36xx/zoom3.

Paul, do you want to submit a formal patch for this for 2.6.38? if not,
I can add a changelog and queue this with other PM core changes for 2.6.38.

Kevin

[1] MMC: omap_hsmmc: enable interface clock before calling mmc_host_enable()
--
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-12-09 17:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-07 18:21 OMAP HSMMC problems with off-mode Paul Walmsley
2010-12-07 18:45 ` Chikkature Rajashekar, Madhusudhan
     [not found] ` <AANLkTinFMMWSrvBQKpFNituHSG2cgUrg5d5-nF+cMe-q@mail.gmail.com>
2010-12-07 18:47   ` Paul Walmsley
2010-12-07 19:51 ` Adrian Hunter
2010-12-07 20:58   ` Chikkature Rajashekar, Madhusudhan
2010-12-07 22:56     ` Paul Walmsley
2010-12-07 23:33       ` Paul Walmsley
2010-12-09 17:50       ` Kevin Hilman [this message]
2010-12-09 18:22         ` Paul Walmsley
2010-12-09 18:25           ` Paul Walmsley
2010-12-09 23:46           ` Kevin Hilman

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=87zkseal9c.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=Tero.Kristo@nokia.com \
    --cc=adrian.hunter@nokia.com \
    --cc=b-cousson@ti.com \
    --cc=kishore.kadiyala@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=madhu.cr@ti.com \
    --cc=paul@pwsan.com \
    --cc=sawant@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.