public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix random SD/MMC card recognition failures on ARM Versatile
@ 2006-11-23 15:46 Vitaly Wool
  2006-11-23 16:03 ` Russell King
  0 siblings, 1 reply; 6+ messages in thread
From: Vitaly Wool @ 2006-11-23 15:46 UTC (permalink / raw)
  To: drzeus-mmc; +Cc: linux-kernel

Hello Pierre,

currently sometimes the SD/MMC card inserted results in recognition failure on ARM Versatile board:

   <<<Plug in MMC card>>>

root@versatile:~# mmcblk0: mmc0:0001 SDMB-32 31360KiB
 mmcblk0:<3>mmcblk0: error 3 transferring data
end_request: I/O error, dev mmcblk0, sector 0
Buffer I/O error on device mmcblk0, logical block 0
mmcblk0: error 3 transferring data
end_request: I/O error, dev mmcblk0, sector 0
Buffer I/O error on device mmcblk0, logical block 0
 unable to read partition table

This patch fixes the problem.

 drivers/mmc/mmci.c |    2 ++
 1 file changed, 2 insertions(+)

Signed-off-by: Vitaly Wool <vitalywool@gmail.com>

Index: linux-2.6.18/drivers/mmc/mmci.c
===================================================================
--- linux-2.6.18.orig/drivers/mmc/mmci.c
+++ linux-2.6.18/drivers/mmc/mmci.c
@@ -41,6 +41,8 @@ static void
 mmci_request_end(struct mmci_host *host, struct mmc_request *mrq)
 {
 	writel(0, host->base + MMCICOMMAND);
+	writel(0, host->base + MMCIDATACTRL);
+	writel(0, host->base + MMCIMASK1);
 
 	host->mrq = NULL;
 	host->cmd = NULL;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-11-24  7:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-23 15:46 [PATCH] fix random SD/MMC card recognition failures on ARM Versatile Vitaly Wool
2006-11-23 16:03 ` Russell King
2006-11-23 19:29   ` Vitaly Wool
2006-11-23 19:42     ` Russell King
2006-11-23 19:57       ` Russell King
2006-11-24  7:54       ` Vitaly Wool

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox