]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix pt2pt discovery on SLI3 HBAs
authorJames Smart <jsmart2021@gmail.com>
Sun, 22 Sep 2019 03:58:47 +0000 (20:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Oct 2019 02:07:08 +0000 (22:07 -0400)
commit9fd82f7013699ebbda700de8c63b5890e1eb196c
treef36d5c5ea968e3f1e0d3295d77a1cc9438eadd3d
parent83b4b06b7408ce798a220098fbeac6cb0a1db352
scsi: lpfc: Fix pt2pt discovery on SLI3 HBAs

After exchanging PLOGI on an SLI-3 adapter, the PRLI exchange failed.  Link
trace showed the port was assigned a non-zero n_port_id, but didn't use the
address on the PRLI. The assigned address is set on the port by the
CONFIG_LINK mailbox command. The driver responded to the PRLI before the
mailbox command completed. Thus the PRLI response used the old n_port_id.

Defer the PRLI response until CONFIG_LINK completes.

Link: https://lore.kernel.org/r/20190922035906.10977-2-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nportdisc.c