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)
commit6dbb89014dc303facc54d33ae64419d2f9c8ff32
treea8cbfacc08706de92a9828fed4a3ae1f5cc30003
parentc00e858d550c141169cde01c0d220d9eb21321a8
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