qla2xxx: Wait for reset completion without lock for ISPFX00.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
bc6ac5e8c2
commit
ec1937a21b
1 changed files with 2 additions and 1 deletions
|
@ -572,12 +572,13 @@ qlafx00_soc_cpu_reset(scsi_qla_host_t *vha)
|
||||||
/* Kick in Core0 to start boot process */
|
/* Kick in Core0 to start boot process */
|
||||||
QLAFX00_SET_HBA_SOC_REG(ha, SOC_SW_RST_CONTROL_REG_CORE0, (0xF00));
|
QLAFX00_SET_HBA_SOC_REG(ha, SOC_SW_RST_CONTROL_REG_CORE0, (0xF00));
|
||||||
|
|
||||||
|
spin_unlock_irqrestore(&ha->hardware_lock, flags);
|
||||||
|
|
||||||
/* Wait 10secs for soft-reset to complete. */
|
/* Wait 10secs for soft-reset to complete. */
|
||||||
for (cnt = 10; cnt; cnt--) {
|
for (cnt = 10; cnt; cnt--) {
|
||||||
msleep(1000);
|
msleep(1000);
|
||||||
barrier();
|
barrier();
|
||||||
}
|
}
|
||||||
spin_unlock_irqrestore(&ha->hardware_lock, flags);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue