]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite412ae2ad900c69b0c5f75ec5229b768a39810bc
treee354d62225398fe8cf7ee6e9ec77bc478f54c3c2
parent0be1b826afd6b7d933eab04d264bfb6410c783e6
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