]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
scsi: lpfc: Fix unmap of dpp bars affecting next driver load
authorJames Smart <jsmart2021@gmail.com>
Wed, 18 Dec 2019 23:58:05 +0000 (15:58 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 7 Apr 2020 15:40:14 +0000 (10:40 -0500)
commit038e6643ac3856eba235ce0d2d185a5fafa6ca7c
tree30979e190208097a94a124c6931a4c94a328ab43
parent42898fe98599a97c715f6d714c53ce72ed11c7a0
scsi: lpfc: Fix unmap of dpp bars affecting next driver load

BugLink: https://bugs.launchpad.net/bugs/1855303
When unattaching, the driver did not unmap the DPP bar. This caused the
next load of the driver, which attempts to enable wc, to not work correctly
and wc to be disabled due to an address mapping overlap.

Fix by unmapping on unattach.

Link: https://lore.kernel.org/r/20191218235808.31922-8-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>
(cherry picked from commit 0b4391946da872e825efa3edfa932e44ae6e9cf9)
Signed-off-by: Vignesh Gunasekaran <vignesh.gunasekaran@broadcom.com>
Signed-off-by: Jeff Lane <jeffrey.lane@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/scsi/lpfc/lpfc_init.c