Skip to content
Commit 34497913 authored by Dmitry Shmidt's avatar Dmitry Shmidt Committed by Chris Ball
Browse files

mmc: sdio: Allow sdio operations in other threads during sdio_add_func()



This fixes a bug introduced by 807e8e40 ("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: default avatarDmitry Shmidt <dimitrysh@google.com>
Reviewed-and-Tested-by: default avatarChris Ball <cjb@laptop.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 214d93b0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment