]> 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)
commitbf8df6831ecb21f26079af746afd86bb81f330e7
tree093f0efb23bbd55fb0737318d346d86b5045703b
parent70884976710ce166bd7a1f471a74acbdef43ff24
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