summaryrefslogtreecommitdiff
path: root/packages/linux/linux-openzaurus-2.6.16/rmk-mmc2.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-05-04 11:58:17 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-05-04 11:58:17 +0000
commit4e576d874c40f5358b6f3df70bb10bbcd2ae1717 (patch)
tree3f1479eef20a697bd6b8b5a0bbc45153809d7787 /packages/linux/linux-openzaurus-2.6.16/rmk-mmc2.patch
parentf7dc666421ae0de3d8859aad345239cd13bcc256 (diff)
parent079dcb139403431fb19b752df884fc14aa506abe (diff)
merge of 46964b2367c68919c05de337c00dfb0f80a7bc6f
and 9ff24ed6ad4819ce51140dd2c4bd56863c7229be
Diffstat (limited to 'packages/linux/linux-openzaurus-2.6.16/rmk-mmc2.patch')
-rw-r--r--packages/linux/linux-openzaurus-2.6.16/rmk-mmc2.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/linux/linux-openzaurus-2.6.16/rmk-mmc2.patch b/packages/linux/linux-openzaurus-2.6.16/rmk-mmc2.patch
new file mode 100644
index 0000000000..cef02436d6
--- /dev/null
+++ b/packages/linux/linux-openzaurus-2.6.16/rmk-mmc2.patch
@@ -0,0 +1,26 @@
+
+Always send a stop command at the end of a data transfer. If we avoid
+sending the stop command, some cards remain in data transfer mode, and
+refuse to accept further read/write commands.
+
+Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
+
+diff --git a/drivers/mmc/pxamci.c b/drivers/mmc/pxamci.c
+--- a/drivers/mmc/pxamci.c
++++ b/drivers/mmc/pxamci.c
+@@ -291,7 +291,7 @@ static int pxamci_data_done(struct pxamc
+ pxamci_disable_irq(host, DATA_TRAN_DONE);
+
+ host->data = NULL;
+- if (host->mrq->stop && data->error == MMC_ERR_NONE) {
++ if (host->mrq->stop) {
+ pxamci_stop_clock(host);
+ pxamci_start_cmd(host, host->mrq->stop, 0);
+ } else {
+
+
+-------------------------------------------------------------------
+List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
+FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
+Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
+