]> git.baikalelectronics.ru Git - kernel.git/commit
hinic: fix sending mailbox timeout in aeq event work
authorLuo bin <luobin9@huawei.com>
Sat, 4 Jul 2020 07:32:43 +0000 (15:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jul 2020 00:53:16 +0000 (17:53 -0700)
commit4e30dc07212e0329ec5f0b606ab68313c3b6ea30
treea8cbfacc08706de92a9828fed4a3ae1f5cc30003
parent349653387281a4fe330c18342d841d4216055da0
hinic: fix sending mailbox timeout in aeq event work

When sending mailbox in the work of aeq event, another aeq event
will be triggered. because the last aeq work is not exited and only
one work can be excuted simultaneously in the same workqueue, mailbox
sending function will return failure of timeout. We create and use
another workqueue to fix this.

Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c
drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.h