scsi: lpfc: Correct invalid EQ doorbell write on if_type=6
authorJames Smart <jsmart2021@gmail.com>
Mon, 10 Sep 2018 17:30:47 +0000 (10:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:46:28 +0000 (18:46 +0100)
commit87c32dbd7eff10681aa09226be887a222245883f
tree696cad83ede46da59e72370afc9b41d8f13f2731
parent8caed6a5d3857e4ca1dfc9ea455ec8e4d1837ec1
scsi: lpfc: Correct invalid EQ doorbell write on if_type=6

[ Upstream commit aad59d5d34738d6fd8c359df8048a84cd443e504 ]

During attachment, the driver writes the EQ doorbell to disable potential
interrupts from an EQ. The current EQ doorbell format used for clearing the
interrupt is incorrect and uses an if_type=2 format, making the operation act
on the wrong EQ.

Correct the code to use the proper if_type=6 EQ doorbell format.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/lpfc/lpfc_sli.c