]> git.baikalelectronics.ru Git - kernel.git/commit
carl9170: fix state downgrade during reset
authorChristian Lamparter <chunkeey@googlemail.com>
Fri, 17 Sep 2010 20:58:40 +0000 (22:58 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 21 Sep 2010 15:05:24 +0000 (11:05 -0400)
commit80baadb435646d6fbd7dd1b075f6fdac10aadcfb
treeb7296e1a0888f76bd17b908eeceb1d337da35807
parent5644d5544ef4450ec2a6a4731409c7561840ff75
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: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/usb.c