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 00:36:05 +0000
commit2d1c153671cb7cf8c3a70d0759d97ea7edb49235 (patch)
tree5c46412acd6c581d285b74af29092184e8cbf412
parent9527c6636e53ae257f2b69c69b378f59360f9971 (diff)
downloadlinux-sh-2d1c153671cb7cf8c3a70d0759d97ea7edb49235.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 8b4dfd45433b..b440cefcf369 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -2642,8 +2642,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)