net: hns3: fix interrupt clearing error for VF
driver inclusion category: bugfix bugzilla: NA CVE: NA Currently, VF driver has two kinds of interrupts, reset & CMDQ RX. According to the UM, each interrupt should be cleared by write 0 to the corresponding bit, but the implementation is write 0 to the whole register in fact, it will clear other interrupt at the same time, then the VF will loss the interrupt. This patch fixes it, and adds a new register for reading the interrupt status according to hardware user manual. Fixes: e2cb1dec ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support") Fixes: b90fcc5b ("net: hns3: add reset handling for VF when doing Core/Global/IMP reset") Feature or Bugfix:Bugfix Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com> Reviewed-by: Nlinyunsheng <linyunsheng@huawei.com> Reviewed-by: NYang Yingliang <yangyingliang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录