Skip to content
Commit 2cc83bf7 authored by Dennis Zhou's avatar Dennis Zhou Committed by Ulf Hansson
Browse files

mmc: core: Allow mmc_start_host() synchronously detect a card



When using dm-verity with a data partition on an emmc device, dm-verity
races with the initialization of the (e)MMC/SD cards. This is because the
card detection procedure is being managed from a workqueue, rather than
synchronously from the mmc host's ->probe() routine.

To allow the card detect to be synchronous, let's simply skip using the
workqueue at the first initialization attempt from mmc_start_host().

Signed-off-by: default avatarDennis Zhou <dennis@kernel.org>
Link: https://lore.kernel.org/r/ZCTOMVjW+pnZVGsQ@snowbird
[Ulf: Re-wrote the commit message to clarify the change]
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 3108eb2e
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