]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2020 02:43:38 +0000 (19:43 -0700)
commitbf6271c107b199622e35fc8ba859dcf1258cbc68
tree093f0efb23bbd55fb0737318d346d86b5045703b
parent75dd59cbbeaa0c8319fb2779a1bf22c0ba7ae423
hinic: fix the bug of clearing event queue

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>
drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c