summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@libc.org>2016-04-07 14:49:09 +0000
committerRich Felker <dalias@libc.org>2016-06-08 22:07:44 +0000
commit4d9135a9a062612ba0640dbe33806a3b8616e730 (patch)
treea16145c1e5cf32e2ee342f7e126440735b5d123f
parent50e6f4d7322a9da1b02fe70456f646175e553f04 (diff)
downloadlinux-sh-4d9135a9a062612ba0640dbe33806a3b8616e730.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)