Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: fix sdio timeout calculation

SDIO doesn't have a CSD so it uses different timeout values than
SD memory.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

+9
+9
drivers/mmc/core/core.c
··· 232 232 unsigned int mult; 233 233 234 234 /* 235 + * SDIO cards only define an upper 1 s limit on access. 236 + */ 237 + if (mmc_card_sdio(card)) { 238 + data->timeout_ns = 1000000000; 239 + data->timeout_clks = 0; 240 + return; 241 + } 242 + 243 + /* 235 244 * SD cards use a 100 multiplier rather than 10 236 245 */ 237 246 mult = mmc_card_sd(card) ? 100 : 10;