From: Daniel Drake <dsd@laptop.org>
To: linux-mmc@vger.kernel.org
Cc: Ohad Ben-Cohen <ohad@wizery.com>
Subject: Re: -ENOSYS suspend-powerdown regression
Date: Sat, 4 Jun 2011 11:18:10 +0100 [thread overview]
Message-ID: <BANLkTimRWqo1M7OOQmdWOxSQvqiNx48Ftg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimdp2n1qhLQmTk+k_M5_WowhJqPyQ@mail.gmail.com>
On 30 May 2011 15:26, Daniel Drake <dsd@laptop.org> wrote:
> Hi,
>
> The libertas_sdio driver has a suspend routine which returns -ENOSYS
> when the card should effectively be removed and powered during
> suspend, to be re-probed during resume.
>
> This is broken in linus master.
Actually, it only breaks when I enable runtime PM via the patch we are
discussing in the other thread.
Here is the call trace:
mmc_suspend_host
mmc_sdio_remove
sdio_remove_func
device_del
sdio_bus_remove
In sdio_bus_remove, we hit:
/* Make sure card is powered before invoking ->remove() */
if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD) {
ret = pm_runtime_get_sync(dev);
if (ret < 0)
goto out;
}
pm_runtime_get_sync returns -11, therefore we skip the following
drv->remove call, causing this confusion. -11 is EAGAIN
Digging further, in the pm_runtime_get_sync() call we reach
rpm_resume() in drivers/base/power where we hit:
else if (dev->power.disable_depth > 0)
retval = -EAGAIN;
Not sure what this means. Any thoughts?
Thanks,
Daniel
next prev parent reply other threads:[~2011-06-04 10:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-30 14:26 -ENOSYS suspend-powerdown regression Daniel Drake
2011-06-04 9:50 ` Daniel Drake
2011-06-04 10:18 ` Daniel Drake [this message]
2011-06-04 10:33 ` Ohad Ben-Cohen
2011-06-04 11:10 ` Daniel Drake
2011-06-04 23:08 ` Ohad Ben-Cohen
2011-06-05 12:31 ` Daniel Drake
2011-06-05 13:49 ` Ohad Ben-Cohen
2011-06-28 5:55 ` Ohad Ben-Cohen
2011-06-28 20:59 ` Daniel Drake
2011-06-28 21:47 ` Ohad Ben-Cohen
2011-06-28 21:54 ` Daniel Drake
2011-06-28 22:04 ` Ohad Ben-Cohen
2011-07-06 15:53 ` Daniel Drake
2011-07-08 15:38 ` Daniel Drake
2011-07-18 1:53 ` Ohad Ben-Cohen
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=BANLkTimRWqo1M7OOQmdWOxSQvqiNx48Ftg@mail.gmail.com \
--to=dsd@laptop.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ohad@wizery.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;
as well as URLs for NNTP newsgroup(s).