]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
scsi: cxlflash: Allow cards without WWPN VPD to configure
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Thu, 7 Dec 2017 17:20:54 +0000 (12:20 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 14 Mar 2018 10:40:28 +0000 (11:40 +0100)
commit0f7658adc62115e36d6f3e4c8a9173a3b176f82c
tree2269960618f215f50461cac826747e7c08b9f46b
parent9404e199e1f5bcd7f9cbf2044f7195902cf0fa92
scsi: cxlflash: Allow cards without WWPN VPD to configure

BugLink: http://bugs.launchpad.net/bugs/1730515
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>
(cherry picked from commit 0d4191305e69e42b3f7f11bbcf077d1d42929f94)
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/scsi/cxlflash/main.c
drivers/scsi/cxlflash/main.h