From: Dmitry Shmidt Date: Thu, 3 Mar 2011 22:40:10 +0000 (-0500) Subject: mmc: sdio: Allow sdio operations in other threads during sdio_add_func() X-Git-Tag: v2.6.38-rc8~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34497913f2936fd43c86b007da7224bb8e77fd15;p=pandora-kernel.git mmc: sdio: Allow sdio operations in other threads during sdio_add_func() This fixes a bug introduced by 807e8e40673d ("mmc: Fix sd/sdio/mmc initialization frequency retries") that prevented SDIO drivers from performing SDIO commands in their probe routines -- the above patch called mmc_claim_host() before sdio_add_func(), which causes a deadlock if an external SDIO driver calls sdio_claim_host(). Fix tested on an OLPC XO-1.75 with libertas on SDIO. Signed-off-by: Dmitry Shmidt Reviewed-and-Tested-by: Chris Ball Signed-off-by: Chris Ball --- Reading git-diff-tree failed