diff options
author | Xiaofei Tan <tanxiaofei@huawei.com> | 2017-10-24 23:51:45 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-31 12:28:00 -0400 |
commit | b4241f0fa3e445ad4e2d06b7370d45195fd7a627 (patch) | |
tree | ca9a83a4e471301a7e6499db1f68b9147402c7a5 /drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | |
parent | ffc8f149c2b03e7232d24e819f3d235dce62502f (diff) | |
download | linux-b4241f0fa3e445ad4e2d06b7370d45195fd7a627.tar.gz linux-b4241f0fa3e445ad4e2d06b7370d45195fd7a627.tar.bz2 linux-b4241f0fa3e445ad4e2d06b7370d45195fd7a627.zip |
scsi: hisi_sas: add hisi_hba.rst_work init for v3 hw
Add init code of hisi_hba->rst_work for v3 hw. Because v3 hw also need
it to recover controller when some hw errors occurs.
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hisi_sas/hisi_sas_v3_hw.c')
-rw-r--r-- | drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index 818bd5754b7a..1f8995bfdb8e 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -1840,6 +1840,7 @@ hisi_sas_shost_alloc_pci(struct pci_dev *pdev) } hisi_hba = shost_priv(shost); + INIT_WORK(&hisi_hba->rst_work, hisi_sas_rst_work_handler); hisi_hba->hw = &hisi_sas_v3_hw; hisi_hba->pci_dev = pdev; hisi_hba->dev = dev; |