Title: [8864] trunk/drivers/mtd/nand/bf5xx_nand.c: bug[#6011], fix the wrong way to check nand ready
- Revision
- 8864
- Author
- bhsong
- Date
- 2010-06-01 00:13:34 -0400 (Tue, 01 Jun 2010)
Log Message
bug[#6011], fix the wrong way to check nand ready
Modified Paths
Diff
Modified: trunk/drivers/mtd/nand/bf5xx_nand.c (8863 => 8864)
--- trunk/drivers/mtd/nand/bf5xx_nand.c 2010-05-31 02:26:07 UTC (rev 8863)
+++ trunk/drivers/mtd/nand/bf5xx_nand.c 2010-06-01 04:13:34 UTC (rev 8864)
@@ -218,9 +218,9 @@
*/
static int bf5xx_nand_devready(struct mtd_info *mtd)
{
- unsigned short val = bfin_read_NFC_IRQSTAT();
+ unsigned short val = bfin_read_NFC_STAT();
- if ((val & NBUSYIRQ) == NBUSYIRQ)
+ if ((val & NBUSY) == NBUSY)
return 1;
else
return 0;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits