public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Maxim Levitsky <maximlevitsky@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-pm <linux-pm@lists.linux-foundation.org>
Subject: Re: How to disable async resume for few selected devices (does it work?)
Date: Thu, 03 Jun 2010 09:55:45 +0300	[thread overview]
Message-ID: <1275548145.2582.2.camel@maxim-laptop> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1006022147430.24772-100000@netrider.rowland.org>

On Wed, 2010-06-02 at 21:51 -0400, Alan Stern wrote: 
> On Thu, 3 Jun 2010, Maxim Levitsky wrote:
> 
> > I have a card reader on which one function implements SDHCI and other
> > MMC (to workaround windows bug....)
> > 
> > There is a way to disable MMC function, but is causes the device
> > sometimes to die on resume from disk/ram.
> > 
> > I today was told that MMC function is in fact _almost_ standard SDHCI
> > controller, and in fact now sdhci binds to it and works just fine.
> > 
> > However since both devices share same hardware they appear to have need
> > to be resumed one after another, and definitely not in parallel.
> > I tried to use device_disable_async_suspend on both pci devices and
> > indeed both power/async turns to false.
> > 
> > But they are still resumed in parallel:
> > (look how well mmc0 and mmc1 interleave...)
> > Why?
> 
> My guess is that you shouldn't have disabled async suspend on the PCI 
> devices but on their children instead.  That is, the PCI devices are 
> 0000:07:00.1 and 0000:07:00.2, but the devices causing your problem are 
> mmc0 and mmc1.  Or maybe you'd prefer to disable async suspend on all 
> four devices.
Nope, all childeren of both pci device has 'async' disabled.
Just checked that.

Best regards,
Maxim Levitsky

> 
> Alan Stern
> 

  reply	other threads:[~2010-06-03  6:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-03  1:08 How to disable async resume for few selected devices (does it work?) Maxim Levitsky
2010-06-03  1:51 ` Alan Stern
2010-06-03  6:55   ` Maxim Levitsky [this message]
2010-06-03 14:08     ` Alan Stern
2010-06-03 16:12       ` Maxim Levitsky
2010-06-03 17:43       ` Maxim Levitsky

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=1275548145.2582.2.camel@maxim-laptop \
    --to=maximlevitsky@gmail.com \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=stern@rowland.harvard.edu \
    /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