aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_attr.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_attr.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c
index ef061d97a222..fc48e40c4d29 100644
--- a/drivers/scsi/lpfc/lpfc_attr.c
+++ b/drivers/scsi/lpfc/lpfc_attr.c
@@ -1946,11 +1946,13 @@ sysfs_mbox_read(struct kobject *kobj, struct bin_attribute *bin_attr,
1946 } 1946 }
1947 1947
1948 /* If HBA encountered an error attention, allow only DUMP 1948 /* If HBA encountered an error attention, allow only DUMP
1949 * mailbox command until the HBA is restarted. 1949 * or RESTART mailbox commands until the HBA is restarted.
1950 */ 1950 */
1951 if ((phba->pport->stopped) && 1951 if ((phba->pport->stopped) &&
1952 (phba->sysfs_mbox.mbox->mb.mbxCommand 1952 (phba->sysfs_mbox.mbox->mb.mbxCommand !=
1953 != MBX_DUMP_MEMORY)) { 1953 MBX_DUMP_MEMORY &&
1954 phba->sysfs_mbox.mbox->mb.mbxCommand !=
1955 MBX_RESTART)) {
1954 sysfs_mbox_idle(phba); 1956 sysfs_mbox_idle(phba);
1955 spin_unlock_irq(&phba->hbalock); 1957 spin_unlock_irq(&phba->hbalock);
1956 return -EPERM; 1958 return -EPERM;