]> git.baikalelectronics.ru Git - 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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 21 Dec 2019 18:42:42 +0000 (13:42 -0500)
commitc1ab535428b4ab5a9f40f0c5d443dd5cb8efc555
treeaecba2aa41803bd5565df02506bcfee516ca2478
parentcc2e3867f08615de0bfb7b67566ea1d0f0783bab
scsi: lpfc: Fix unmap of dpp bars affecting next driver load

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>
drivers/scsi/lpfc/lpfc_init.c