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, 24 Apr 2020 06:00:24 +0000 (08:00 +0200)
commite70596018d9cd7eb5615a1b0ddfb9b381bb4f348
tree29b4e17ffcd13cf0e2a5ce8a8b676921cb1c7e9f
parent2cd620744fc3f7d81423ba42f50f24f03d6d8956
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