提交 78ec789b 编写于 作者: C Christian Lamparter 提交者: John W. Linville

carl9170: fix state downgrade during reset

Don't mark the device as completely dead just yet.
If all goes to plan and carl9170_reboot succeeds
then we can skip the expensive userspace-driven
reinitialization anyway.

And if it doesn't and carl9170_reboot fails,
then carl9170_usb_cancel_urbs will do the
necessary steps.
Signed-off-by: NChristian Lamparter <chunkeey@googlemail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 cf6487d0
......@@ -846,8 +846,6 @@ int carl9170_usb_restart(struct ar9170 *ar)
carl9170_usb_stop(ar);
carl9170_set_state(ar, CARL9170_UNKNOWN_STATE);
if (err)
goto err_out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册