Skip to content

Commit

Permalink
nand/denali: use cpu_relax() while waiting for hardware interrupt
Browse files Browse the repository at this point in the history
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Chuanxiao Dong authored and David Woodhouse committed Aug 12, 2010
1 parent f0bc0c7 commit 628bfd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/nand/denali.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 628bfd4

Please sign in to comment.