summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@libc.org>2016-04-07 14:49:09 +0000
committerRich Felker <dalias@libc.org>2016-04-28 20:48:19 +0000
commitbb5118094da97d62be91e0c8148e27eaa53fadec (patch)
treed2cf90502e0826bac67e7d033911188e68659178
parent3784a31c12dc9c23c5c497786f503e1acafe64dd (diff)
downloadlinux-sh-bb5118094da97d62be91e0c8148e27eaa53fadec.tar.gz
mmc: disable rescan for card change
This is a hack to fix a nasty bug: the rescan is completely unsynchronized with use of the spi bus for spi-based mmc, and thus clobbers in-progress transfers when it happens. No idea what the right fix is.
-rw-r--r--drivers/mmc/core/core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 41b1e761965f..38b73b6bf37e 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -2634,8 +2634,9 @@ void mmc_rescan(struct work_struct *work)
mmc_release_host(host);
out:
- if (host->caps & MMC_CAP_NEEDS_POLL)
- mmc_schedule_delayed_work(&host->detect, HZ);
+// if (host->caps & MMC_CAP_NEEDS_POLL)
+// mmc_schedule_delayed_work(&host->detect, HZ);
+;
}
void mmc_start_host(struct mmc_host *host)