]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: pm80xx: Remove busy wait from mpi_uninit_check()
authorIgor Pylypiv <ipylypiv@google.com>
Tue, 6 Apr 2021 18:05:34 +0000 (11:05 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Apr 2021 03:07:10 +0000 (23:07 -0400)
commit742a1d088fd96fa31b7277805ec6c9eba9682e04
tree53d0d6664085becc24118a3c905fe0df2eff6716
parent351f9ba25a7cd3127595ebba60a6e370ffa06dd8
scsi: pm80xx: Remove busy wait from mpi_uninit_check()

mpi_uninit_check() is not being called in an atomic context.  The only
caller of mpi_uninit_check() is pm80xx_chip_soft_rst().

Callers of pm80xx_chip_soft_rst():

 - pm8001_ioctl_soft_reset()
 - pm8001_pci_probe()
 - pm8001_pci_remove()
 - pm8001_pci_suspend()
 - pm8001_pci_resume()

There was a similar fix for mpi_init_check() in commit
e1d1dd1c13dd ("scsi: pm80xx: Do not busy wait in MPI init check")

Link: https://lore.kernel.org/r/20210406180534.1924345-3-ipylypiv@google.com
Reviewed-by: Vishakha Channapattan <vishakhavc@google.com>
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm80xx_hwi.c