scsi: lpfc: Rework misleading nvme not supported in firmware message
authorJames Smart <jsmart2021@gmail.com>
Wed, 22 May 2019 00:49:02 +0000 (17:49 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Jun 2019 23:46:21 +0000 (19:46 -0400)
commitc15e07047e7ad006324d8a8b9d58a86e8f0131fe
tree0b79c4593457321258f831ad5ddad6a43ce1f99e
parentb9e5a2d961dbedd7ee293d21f12d6b5d4d4fc35a
scsi: lpfc: Rework misleading nvme not supported in firmware message

The driver unconditionally says fw doesn't support nvme when in
truth it was a driver parameter settings that disabled nvme support.

Rework the code validating nvme support to accurately report what
condition is disabling nvme support. Save state on whether nvme
fw supports nvme in case sysfs attributes change dynamically.

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_init.c
drivers/scsi/lpfc/lpfc_sli4.h