]> git.baikalelectronics.ru Git - kernel.git/commit
hinic: bump up the timeout of SET_FUNC_STATE cmd
authorLuo bin <luobin9@huawei.com>
Fri, 4 Sep 2020 08:37:28 +0000 (16:37 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 5 Sep 2020 22:24:39 +0000 (15:24 -0700)
commitdcad3cb68ffa934c9a62f4e7d924ec572ea952df
tree9e36d12c03fb4c28bbcf3b0141caf5e8226885c0
parent4fe652bb96fc88780ab069488929d7a088d8fa98
hinic: bump up the timeout of SET_FUNC_STATE cmd

We free memory regardless of the return value of SET_FUNC_STATE
cmd in hinic_close function to avoid memory leak and this cmd may
timeout when fw is busy with handling other cmds, so we bump up the
timeout of this cmd to ensure it won't return failure.

Fixes: 2ed5936e5b46 ("net-next/hinic: Add Tx operation")
Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c