Commit 2ec9b38e authored by Xingui Yang's avatar Xingui Yang Committed by Yongqiang Liu
Browse files

scsi: hisi_sas: Clear interrupt status when exiting channel int0 for v3 hw

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6J2FQ


CVE: NA

-----------------------------------------

The channel int0 flag is not cleared when exit interrupt, and the OOB
interrupt is triggered by other PHYs. The previously uncleared interrupt
will continues to be triggered as follows:

hisi_sas_v3_hw 0000:b4:02.0: phydown: phy2 phy_state=0xfb
hisi_sas_v3_hw 0000:b4:02.0: ignore flutter phy2 down
hisi_sas_v3_hw 0000:b4:02.0: phy2 OOB ready
hisi_sas_v3_hw 0000:b4:02.0: phy2 phy_attached!
hisi_sas_v3_hw 0000:b4:02.0: phyup: phy2 link_rate=10(sata)

hisi_sas_v3_hw 0000:b4:02.0: phydown: phy3 phy_state=0xf7
hisi_sas_v3_hw 0000:b4:02.0: ignore flutter phy3 down
hisi_sas_v3_hw 0000:b4:02.0: phy2 OOB ready
hisi_sas_v3_hw 0000:b4:02.0: phy2 phy_attached!
hisi_sas_v3_hw 0000:b4:02.0: phy3 OOB ready
hisi_sas_v3_hw 0000:b4:02.0: phy3 phy_attached!

So clear interrupt status when exiting channel int0 for v3 hw.

Signed-off-by: default avatarXingui Yang <yangxingui@huawei.com>
Reviewed-by: default avatarkang fenglong <kangfenglong@huawei.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent ad00f9f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment