nand/denali: use cpu_relax() while waiting for hardware interrupt

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Aug 12 06:59:01 EDT 2010


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=628bfd4164502fa531b6d284cb6a18e337ec3f20
Commit:     628bfd4164502fa531b6d284cb6a18e337ec3f20
Parent:     f0bc0c778fe12e43658193fae975fc5762e98773
Author:     Chuanxiao Dong <chuanxiao.dong at intel.com>
AuthorDate: Wed Aug 11 17:53:29 2010 +0800
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Thu Aug 12 11:10:39 2010 +0100

    nand/denali: use cpu_relax() while waiting for hardware interrupt
    
    Signed-off-by: Chuanxiao Dong <chuanxiao.dong at intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/denali.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index 975a893..5f7c8c8 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -211,9 +211,9 @@ static uint16_t denali_nand_reset(struct denali_nand_info *denali)
 		iowrite32(device_reset_banks[i],
 				denali->flash_reg + DEVICE_RESET);
 		while (!(ioread32(denali->flash_reg +
-						intr_status_addresses[i]) &
+				intr_status_addresses[i]) &
 			(reset_complete[i] | operation_timeout[i])))
-			;
+			cpu_relax();
 		if (ioread32(denali->flash_reg + intr_status_addresses[i]) &
 			operation_timeout[i])
 			dev_dbg(&denali->dev->dev,



More information about the linux-mtd-cvs mailing list