]> git.karo-electronics.de Git - linux-beck.git/commitdiff
nand/denali: use cpu_relax() while waiting for hardware interrupt
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Wed, 11 Aug 2010 09:53:29 +0000 (17:53 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 12 Aug 2010 10:10:39 +0000 (11:10 +0100)
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/denali.c

index 975a89351f9735a0fd5bfd98543849d106ec2a88..5f7c8c8b8b67b4eecdc66de1e41781c76fedc6d6 100644 (file)
@@ -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,