public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: core: Allow sdio operations in other thread during sdio_add_func()
@ 2011-02-12  0:25 Dmitry Shmidt
  2011-02-12  2:34 ` Dmitry Shmidt
  2011-03-03 22:42 ` Chris Ball
  0 siblings, 2 replies; 6+ messages in thread
From: Dmitry Shmidt @ 2011-02-12  0:25 UTC (permalink / raw)
  To: linux-mmc

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:



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-03 22:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-12  0:25 [PATCH] mmc: core: Allow sdio operations in other thread during sdio_add_func() Dmitry Shmidt
2011-02-12  2:34 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox