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-11 22:57:06 +0000
commit3f862b6e88e638d89e7d1eb6a51060892ee743a9 (patch)
treee27324784fc3ae8c4caebd37c22d50387427b79b
parentf510366f67b73cfd9f3d03c2ba8a0fdc9b128bbe (diff)
downloadlinux-sh-3f862b6e88e638d89e7d1eb6a51060892ee743a9.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)