Title: [5936] trunk/drivers/mmc/host/bfin_sdh.c: bug[#2424]enable sd card detection,but don't know how to detect removal,so auto-detection only take effect the first time a card is inserted
Revision
5936
Author
cliff
Date
2008-12-31 03:53:25 -0600 (Wed, 31 Dec 2008)

Log Message

bug[#2424]enable sd card detection,but don't know how to detect removal,so auto-detection only take effect the first time a card is inserted

Modified Paths

Diff

Modified: trunk/drivers/mmc/host/bfin_sdh.c (5935 => 5936)


--- trunk/drivers/mmc/host/bfin_sdh.c	2008-12-31 08:16:22 UTC (rev 5935)
+++ trunk/drivers/mmc/host/bfin_sdh.c	2008-12-31 09:53:25 UTC (rev 5936)
@@ -538,11 +538,9 @@
 	bfin_write_SDH_CFG(bfin_read_SDH_CFG() | CLKS_EN);
 	SSYNC();
 
-	/* Disable card detect pin */
-#if 1
-	bfin_write_SDH_CFG((bfin_read_SDH_CFG() & 0x1F) | 0x60);
+	/* Enable card detect pin */
+	bfin_write_SDH_CFG((bfin_read_SDH_CFG() & 0x1F) | 0xa0);
 	SSYNC();
-#endif
 	sd_entry = create_proc_entry("driver/sdh", 0600, NULL);
 	sd_entry->read_proc = NULL;
 	sd_entry->write_proc = proc_write;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to