scsi: lpfc: Revert message logging on unsupported topology
authorJames Smart <jsmart2021@gmail.com>
Wed, 22 May 2019 00:48:57 +0000 (17:48 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Jun 2019 23:46:21 +0000 (19:46 -0400)
Turns out the message change in 12.2.0.1 for unsupported topology
makes the linux driver out of sync with other products.

Revert the message back to the prior content for product consistency.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c

index e9adb3f1961d86967c53d82c3149a0693ac4fbb0..aabd42c4c6f8f8bad8f092565132757a352be828 100644 (file)
@@ -4090,9 +4090,9 @@ lpfc_topology_store(struct device *dev, struct device_attribute *attr,
                }
                if ((phba->pcidev->device == PCI_DEVICE_ID_LANCER_G6_FC ||
                     phba->pcidev->device == PCI_DEVICE_ID_LANCER_G7_FC) &&
-                   val != FLAGS_TOPOLOGY_MODE_PT_PT) {
+                   val == 4) {
                        lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
-                               "3114 Only non-FC-AL mode is supported\n");
+                               "3114 Loop mode not supported\n");
                        return -EINVAL;
                }
                phba->cfg_topology = val;