mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 07:01:32 +00:00
qla2xxx: Reduce exess wait during chip reset
Soft reset and Risc reset should take 100uS to complete. This change pad the timeout up to 400uS, which should be plenty. Signed-off-by: Quinn Tran <quinn.tran@cavium.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
parent
5f35509db1
commit
200ffb159b
@ -1191,7 +1191,7 @@ qla24xx_reset_risc(scsi_qla_host_t *vha)
|
||||
|
||||
/* Wait for soft-reset to complete. */
|
||||
RD_REG_DWORD(®->ctrl_status);
|
||||
for (cnt = 0; cnt < 6000000; cnt++) {
|
||||
for (cnt = 0; cnt < 60; cnt++) {
|
||||
barrier();
|
||||
if ((RD_REG_DWORD(®->ctrl_status) &
|
||||
CSRX_ISP_SOFT_RESET) == 0)
|
||||
@ -1234,7 +1234,7 @@ qla24xx_reset_risc(scsi_qla_host_t *vha)
|
||||
RD_REG_DWORD(®->hccr);
|
||||
|
||||
RD_REG_WORD(®->mailbox0);
|
||||
for (cnt = 6000000; RD_REG_WORD(®->mailbox0) != 0 &&
|
||||
for (cnt = 60; RD_REG_WORD(®->mailbox0) != 0 &&
|
||||
rval == QLA_SUCCESS; cnt--) {
|
||||
barrier();
|
||||
if (cnt)
|
||||
|
Loading…
Reference in New Issue
Block a user