From: Chuanxiao Dong Date: Wed, 11 Aug 2010 09:53:29 +0000 (+0800) Subject: nand/denali: use cpu_relax() while waiting for hardware interrupt X-Git-Tag: upstream/snapshot3+hdmi~13219^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=628bfd4164502fa531b6d284cb6a18e337ec3f20;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git nand/denali: use cpu_relax() while waiting for hardware interrupt Signed-off-by: Chuanxiao Dong Signed-off-by: David Woodhouse --- 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,