Skip to content

Commit

Permalink
carl9170: fix state downgrade during reset
Browse files Browse the repository at this point in the history
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: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Sep 21, 2010
1 parent cf6487d commit 78ec789
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/wireless/ath/carl9170/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 78ec789

Please sign in to comment.