From: Dmitry Shmidt <dimitrysh@android.com>
To: linux-mmc@vger.kernel.org
Subject: [PATCH] mmc: core: Allow sdio operations in other thread during sdio_add_func()
Date: Sat, 12 Feb 2011 00:25:30 +0000 (UTC) [thread overview]
Message-ID: <loom.20110212T012443-915@post.gmane.org> (raw)
commit 9cb71a1eb86a2acf0762d31af633984cf9e24d32
Author: Dmitry Shmidt <dimitrysh@google.com>
Date: Fri Feb 11 16:10:33 2011 -0800
mmc: core: Allow sdio operations in other thread during sdio_add_func()
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index dec4290..d4e6e6ef 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -834,7 +834,6 @@ int mmc_attach_sdio(struct mmc_host *host)
*/
mmc_release_host(host);
err = mmc_add_card(host->card);
- mmc_claim_host(host);
if (err)
goto remove_added;
@@ -846,13 +845,12 @@ int mmc_attach_sdio(struct mmc_host *host)
if (err)
goto remove_added;
}
-
+ mmc_claim_host(host);
return 0;
remove_added:
/* Remove without lock if the device has been added. */
- mmc_release_host(host);
mmc_sdio_remove(host);
mmc_claim_host(host);
remove:
next reply other threads:[~2011-02-12 0:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-12 0:25 Dmitry Shmidt [this message]
2011-02-12 2:34 ` [PATCH] mmc: core: Allow sdio operations in other thread during sdio_add_func() Dmitry Shmidt
2011-02-15 18:08 ` Dmitry Shmidt
2011-02-15 19:26 ` Andy Ross
2011-02-15 19:32 ` Dmitry Shmidt
2011-03-03 22:42 ` Chris Ball
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=loom.20110212T012443-915@post.gmane.org \
--to=dimitrysh@android.com \
--cc=linux-mmc@vger.kernel.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