]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
hinic: fix the bug of clearing event queue
authorLuo bin <luobin9@huawei.com>
Fri, 20 Mar 2020 23:13:17 +0000 (23:13 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 5 May 2020 10:32:22 +0000 (12:32 +0200)
commit85e51edd137b235ecfebbc7f85c0380fd89ea925
treee0d539d513cb3a05468f0eaca5808f4d962f46f5
parent5d5c17ef4bc5967b1830415a6ff70ce819706b38
hinic: fix the bug of clearing event queue

BugLink: https://bugs.launchpad.net/bugs/1873481
[ Upstream commit 614eaa943e9fc3fcdbd4aa0692ae84973d363333 ]

should disable eq irq before freeing it, must clear event queue
depth in hw before freeing relevant memory to avoid illegal
memory access and update consumer idx to avoid invalid interrupt

Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c