]> 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)
commit6ebc9e6a1ac8be8176434ec2ab338a3e6eab0684
treea8cbfacc08706de92a9828fed4a3ae1f5cc30003
parent3497aa7bb9b2c377c4f9b5e16c17950fb5efe184
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