]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi: hisi_sas: fix a bug when free device for v3 hw
authorXiang Chen <chenxiang66@hisilicon.com>
Tue, 24 Oct 2017 15:51:46 +0000 (23:51 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 31 Oct 2017 16:28:00 +0000 (12:28 -0400)
commit13cd5ed612dad10f998e341e0ab1e0019aeb4217
treedbb298c226041f1c5b5e614b1d5a09282f87ec94
parentb4241f0fa3e445ad4e2d06b7370d45195fd7a627
scsi: hisi_sas: fix a bug when free device for v3 hw

Use completion to wait on ITCT CLR interrupt finishing before
processing other things when freeing a device.

This is safer than the pre-existing process of polling the register.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c