]> git.baikalelectronics.ru Git - 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)
commitad02c5c1ed43515950885a7858732cd5d20bc9f6
treedbb298c226041f1c5b5e614b1d5a09282f87ec94
parent30c4f63ba5068819476d7319fa0be0686ec65133
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