scsi: cxlflash: Allow cards without WWPN VPD to configure
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Wed, 25 Oct 2017 21:36:20 +0000 (16:36 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 31 Oct 2017 16:28:03 +0000 (12:28 -0400)
commit0d4191305e69e42b3f7f11bbcf077d1d42929f94
treee354d62225398fe8cf7ee6e9ec77bc478f54c3c2
parent285e6670d0229b0157a9167eb8b2626b445a5a0e
scsi: cxlflash: Allow cards without WWPN VPD to configure

Currently, all adapters that cxlflash supports must have WWPN VPD
keywords to complete configuration. This was required as cards with
external FC ports needed to be programmed with WWPNs.

Newer supported cards do not have an external FC interface and therefore
do not require WWPN. To support backwards compatibility, these devices
have included 'dummy' WWPN VPD with WWPN values of zero. This however
places a dependency that all future cards have WWPN VPD, which may not
always be the case.

Allow for cards to not have WWPN, designating which cards are expected
to have it in order to configure properly.

Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxlflash/main.c
drivers/scsi/cxlflash/main.h