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, 3 insertions, 5 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c
index e8e9905828c9..4e9e890449a3 100644
--- a/drivers/scsi/lpfc/lpfc_attr.c
+++ b/drivers/scsi/lpfc/lpfc_attr.c
@@ -187,12 +187,9 @@ lpfc_state_show(struct class_device *cdev, char *buf)
187 case LPFC_LINK_UP: 187 case LPFC_LINK_UP:
188 case LPFC_CLEAR_LA: 188 case LPFC_CLEAR_LA:
189 case LPFC_HBA_READY: 189 case LPFC_HBA_READY:
190 len += snprintf(buf + len, PAGE_SIZE-len, "Link Up - \n"); 190 len += snprintf(buf + len, PAGE_SIZE-len, "Link Up - ");
191 191
192 switch (vport->port_state) { 192 switch (vport->port_state) {
193 len += snprintf(buf + len, PAGE_SIZE-len,
194 "initializing\n");
195 break;
196 case LPFC_LOCAL_CFG_LINK: 193 case LPFC_LOCAL_CFG_LINK:
197 len += snprintf(buf + len, PAGE_SIZE-len, 194 len += snprintf(buf + len, PAGE_SIZE-len,
198 "Configuring Link\n"); 195 "Configuring Link\n");
@@ -1759,7 +1756,6 @@ sysfs_mbox_read(struct kobject *kobj, struct bin_attribute *bin_attr,
1759 1756
1760 switch (phba->sysfs_mbox.mbox->mb.mbxCommand) { 1757 switch (phba->sysfs_mbox.mbox->mb.mbxCommand) {
1761 /* Offline only */ 1758 /* Offline only */
1762 case MBX_WRITE_NV:
1763 case MBX_INIT_LINK: 1759 case MBX_INIT_LINK:
1764 case MBX_DOWN_LINK: 1760 case MBX_DOWN_LINK:
1765 case MBX_CONFIG_LINK: 1761 case MBX_CONFIG_LINK:
@@ -1782,6 +1778,8 @@ sysfs_mbox_read(struct kobject *kobj, struct bin_attribute *bin_attr,
1782 spin_unlock_irq(&phba->hbalock); 1778 spin_unlock_irq(&phba->hbalock);
1783 return -EPERM; 1779 return -EPERM;
1784 } 1780 }
1781 case MBX_WRITE_NV:
1782 case MBX_WRITE_VPARMS:
1785 case MBX_LOAD_SM: 1783 case MBX_LOAD_SM:
1786 case MBX_READ_NV: 1784 case MBX_READ_NV:
1787 case MBX_READ_CONFIG: 1785 case MBX_READ_CONFIG: