scsi: lpfc: Add support for optional PLDV handling
authorJames Smart <jsmart2021@gmail.com>
Mon, 27 Sep 2021 18:35:18 +0000 (11:35 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 29 Sep 2021 03:28:07 +0000 (23:28 -0400)
commita5b141a895b592b401d739949d347ca473921c92
tree6b987a1b61996f9fbd901d0b693bd03a903709d0
parent60c98a87fcaad9e71b835d2096e6665543cfe2e1
scsi: lpfc: Add support for optional PLDV handling

At adapter attachment or SLI port initialization, read the SLIPORT_STATUS
register to check for pldv_enable. If found, the driver will perform a PCIe
configuration space write when attaching to an SLI port instance that is an
LPe32000 series adapter.

Link: https://lore.kernel.org/r/20210927183518.22130-1-jsmart2021@gmail.com
Co-developed-by: Nigel Kirkland <nkirkland2304@gmail.com>
Signed-off-by: Nigel Kirkland <nkirkland2304@gmail.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_hw4.h
drivers/scsi/lpfc/lpfc_init.c