From: David Brownell <david-b@pacbell.net>
To: linux-mmc <linux-mmc@vger.kernel.org>,
Maxim Levitsky <maximlevitsky@gmail.com>
Cc: linux-pm <linux-pm@lists.linux-foundation.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Philip Langdale <philipl@overt.org>
Subject: Re: [linux-pm] [PATCH] Fix the outstanding issue with hangs on insert/removal of mmc cards
Date: Fri, 11 Jun 2010 12:42:47 -0700 (PDT) [thread overview]
Message-ID: <536217.22740.qm@web180312.mail.gq1.yahoo.com> (raw)
In-Reply-To: <1276282801.8557.20.camel@maxim-laptop>
--- On Fri, 6/11/10, Maxim Levitsky <maximlevitsky@gmail.com> wrote:
> After thinking a lot about how to fix properly the hangs
> caused by
> insert/removal of mmc card during suspend/resume, and default behavior
> of not trusting the card persistence over suspend,
Right; there are two types of driver: ones
that can correctly report whether the card
has been removed ... and ones that can't That
default behavior presumes the latter.
The MMC/SD framework doesn't know about these
two types
(For
reference: the easy way to do the former involves
setting up the GPIO used for card detect as a
(wakeup?) IRQ source.
> First of all there are 2 types of removal possible. First
> one happens
> when system detects that some device is gone. At that point
> there is
> really no point in syncing it.
One suggestion was syncing before suspend...
but that would require coordinating the
block layer and PM framework. That seems
like it'd be generally a wise thing to do;
no point in losing the write cache, ever.
> The other type of removal is controlled removal, usually on user request.
next prev parent reply other threads:[~2010-06-11 19:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-11 19:00 [PATCH] Fix the outstanding issue with hangs on insert/removal of mmc cards Maxim Levitsky
2010-06-11 19:16 ` Maxim Levitsky
2010-06-11 19:19 ` [PATCH v2] MMC: fix all hangs related to mmc/sd card insert/removal during suspend/resume Maxim Levitsky
2010-06-13 11:27 ` Maxim Levitsky
2010-06-14 22:51 ` Andrew Morton
2010-06-14 23:48 ` Maxim Levitsky
2010-06-14 23:01 ` Andrew Morton
2010-06-14 23:18 ` Maxim Levitsky
2010-06-11 19:42 ` David Brownell [this message]
2010-06-11 21:00 ` [linux-pm] [PATCH] Fix the outstanding issue with hangs on insert/removal of mmc cards Alan Stern
2010-06-11 21:03 ` 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=536217.22740.qm@web180312.mail.gq1.yahoo.com \
--to=david-b@pacbell.net \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=maximlevitsky@gmail.com \
--cc=philipl@overt.org \
/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