mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[SCSI] qla2xxx: Clear unsupported 'states' during Get-FW-State queries.
Rather than returning stale mailbox values. Signed-off-by: Andrew Vasquez <[email protected]> Signed-off-by: Saurav Kashyap <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
25852400cc
commit
5b93903844
1 changed files with 1 additions and 0 deletions
|
|
@ -1971,6 +1971,7 @@ qla2x00_fw_ready(scsi_qla_host_t *vha)
|
|||
"Waiting for LIP to complete.\n");
|
||||
|
||||
do {
|
||||
memset(state, -1, sizeof(state));
|
||||
rval = qla2x00_get_firmware_state(vha, state);
|
||||
if (rval == QLA_SUCCESS) {
|
||||
if (state[0] < FSTATE_LOSS_OF_SYNC) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue