scsi: hisi_sas: service interrupt ITCT_CLR interrupt in v2 hw
authorXiang Chen <chenxiang66@hisilicon.com>
Thu, 10 Aug 2017 16:09:33 +0000 (00:09 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 11 Aug 2017 00:15:02 +0000 (20:15 -0400)
commit640acc9a9693e729b7936fb4801f2dd59041a141
treecfbee1d10870e757621ca7ff2e7eecb3c301ddcf
parent8a253888bfc395a7a169f20d710d9289e59a8592
scsi: hisi_sas: service interrupt ITCT_CLR interrupt in v2 hw

This patch is a fix related to freeing a device in v2 hw driver.

Before, we polled to ITCT CLR interrupt to check if a device is free.

This was error prone, as if the interrupt doesn't occur in 10us, we miss
processing it.

To avoid this situation, service this interrupt and sync the event with
a completion.

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.h
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c