net/hns3: fix error code for firmware timeout
authorHongbo Zheng <zhenghongbo3@huawei.com>
Fri, 25 Oct 2019 12:37:04 +0000 (20:37 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:23:23 +0000 (19:23 +0200)
commit1a028f2beab8582f814552c61a54b84eaad5f108
tree41280e003c061dd51cad6ba029844de41e8996ca
parentad7cf94823e826c85c6ba3db268ddf6c35d30db4
net/hns3: fix error code for firmware timeout

Configuration commands are sent to firmware for processing.
When firmware processing timeout, the corresponding error
code is returned. Considering that it is more reasonable to
use error code -ETIME for timeout error, the error code for
processing timeout is changed from -EBADE to -ETIME.

Fixes: 737f30e1c3ab ("net/hns3: support command interface with firmware")

Signed-off-by: Hongbo Zheng <zhenghongbo3@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_cmd.c