hinic: fix a bug of waitting for IO stopped
authorLuo bin <luobin9@huawei.com>
Fri, 20 Mar 2020 23:13:16 +0000 (23:13 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:49:58 +0000 (10:49 +0200)
commitd63fac896335ed64ca086c849ddeb14090784899
treec430936f760e88ae96604828ceb009de4ea8a530
parentad4ad8253f8978c87fe246337c0551d83274cbbf
hinic: fix a bug of waitting for IO stopped

[ Upstream commit 96758117dc528e6d84bd23d205e8cf7f31eda029 ]

it's unreliable for fw to check whether IO is stopped, so driver
wait for enough time to ensure IO process is done in hw before
freeing resources

Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c