Commit 2cc83bf
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: Dennis 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: Ulf Hansson <ulf.hansson@linaro.org>1 parent 3108eb2 commit 2cc83bf
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2199 | 2199 | | |
2200 | 2200 | | |
2201 | 2201 | | |
2202 | | - | |
| 2202 | + | |
2203 | 2203 | | |
2204 | | - | |
2205 | | - | |
2206 | 2204 | | |
2207 | 2205 | | |
2208 | 2206 | | |
| |||
2274 | 2272 | | |
2275 | 2273 | | |
2276 | 2274 | | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
2277 | 2283 | | |
2278 | 2284 | | |
2279 | 2285 | | |
| |||
2286 | 2292 | | |
2287 | 2293 | | |
2288 | 2294 | | |
2289 | | - | |
| 2295 | + | |
| 2296 | + | |
2290 | 2297 | | |
2291 | 2298 | | |
2292 | 2299 | | |
| |||
0 commit comments