mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 11:13:58 +08:00
nand/denali: use cpu_relax() while waiting for hardware interrupt
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
f0bc0c778f
commit
628bfd4164
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user