diff options
author | Xiang Chen | 2019-01-25 15:22:30 +0100 |
---|---|---|
committer | Martin K. Petersen | 2019-01-29 07:41:20 +0100 |
commit | 569eddcf3a0f4efff4ef96a7012010e0f7daa8b4 (patch) | |
tree | d13ca38810e55f9cf6c06b0b5e0c0c4b3bbdb261 /drivers/scsi/hisi_sas/hisi_sas_main.c | |
parent | scsi: hisi_sas: Add debugfs ITCT file and add file operations (diff) | |
download | kernel-qcow2-linux-569eddcf3a0f4efff4ef96a7012010e0f7daa8b4.tar.gz kernel-qcow2-linux-569eddcf3a0f4efff4ef96a7012010e0f7daa8b4.tar.xz kernel-qcow2-linux-569eddcf3a0f4efff4ef96a7012010e0f7daa8b4.zip |
scsi: hisi_sas: send primitive NOTIFY to SSP situation only
Send primitive NOTIFY to SSP situation only, or it causes underflow issue
when sending IO. Also rename hisi_sas_hw.sl_notify() to hisi_sas_hw.
sl_notify_ssp().
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>
Diffstat (limited to 'drivers/scsi/hisi_sas/hisi_sas_main.c')
-rw-r--r-- | drivers/scsi/hisi_sas/hisi_sas_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index a8fda1c9af9e..c6e5bce6c955 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -778,7 +778,8 @@ static void hisi_sas_phyup_work(struct work_struct *work) struct asd_sas_phy *sas_phy = &phy->sas_phy; int phy_no = sas_phy->id; - hisi_hba->hw->sl_notify(hisi_hba, phy_no); /* This requires a sleep */ + if (phy->identify.target_port_protocols == SAS_PROTOCOL_SSP) + hisi_hba->hw->sl_notify_ssp(hisi_hba, phy_no); hisi_sas_bytes_dmaed(hisi_hba, phy_no); } |