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-07 14:57:34 +0000
commit1d6a4d4c3f8312b2cb738868578d38131078cc70 (patch)
tree9dbcd7e36dc17e36061dd1142f160d149d48b5d1
parent3c16e7c41bea7099292fec33185873c5d9b7e27a (diff)
downloadlinux-sh-1d6a4d4c3f8312b2cb738868578d38131078cc70.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)