]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Restore FAWWPN of Physical Port only for loop down
authorSawan Chandak <schandak@marvell.com>
Fri, 25 Jan 2019 07:23:48 +0000 (23:23 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Feb 2019 02:41:16 +0000 (21:41 -0500)
commit0e85a5cea30c7b513f3eb8036032c67965d43206
treefe8ed833880b808db7a1de6c8c5830020d554bcb
parent5c3b893846077241b0a0a90f9f7d1f37f243ff7f
scsi: qla2xxx: Restore FAWWPN of Physical Port only for loop down

When loop was made down explicitly due to cable pull, then for N2N toplogy,
if FAWWPN BIT is enabled by user, then it would restore some default
(garbage) value for Physical port WWPN, so this show garbage WWPN for the
port. Fix is, to restore physical port WWPN, if it is fabric
configuration. When loop is explicitly made down, and FAWWPN feature is
enabled, then driver need to restore original flashed WWPN.

Signed-off-by: Sawan Chandak <schandak@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_isr.c