All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 3/5]nand/denali: use cpu_relax() while waiting for hardware interrupt
@ 2010-08-12  2:23 Chuanxiao.Dong
  0 siblings, 0 replies; only message in thread
From: Chuanxiao.Dong @ 2010-08-12  2:23 UTC (permalink / raw)
  To: linux-mtd, dwmw2


From 4c0c46694b0d69e840295524bc8261e217ea0bf1 Mon Sep 17 00:00:00 2001
From: Chuanxiao Dong <chuanxiao.dong@intel.com>
Date: Wed, 11 Aug 2010 17:53:29 +0800
Subject: [PATCH 3/5] nand/denali: use cpu_relax() while waiting for hardware interrupt

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@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,
-- 
1.6.6.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-12  2:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-12  2:23 [PATCH v1 3/5]nand/denali: use cpu_relax() while waiting for hardware interrupt Chuanxiao.Dong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.