]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: also be quiet when suspending
authorPaul Bolle <pebolle@tiscali.nl>
Sun, 9 Oct 2011 10:12:16 +0000 (12:12 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Mon, 10 Oct 2011 21:02:31 +0000 (18:02 -0300)
commit4c2e28d2423063bcbd9f14683d102e93cc8f9826
tree8d29877f4994770223b46062b0386700acbb5744
parenta783a935733b13d501d839edaa9a64311540114b
Bluetooth: btusb: also be quiet when suspending

usb_submit_urb() returns -ENODEV when a usb device is disconnected. In
commit ae8322be3fd0fbb6fe99891b39be7a1688265010 ("Bluetooth: btusb: be
quiet on device disconnect") I stopped treating that return as an error
in the three btusb_*_complete() functions.

It turns out btusb_send_frame() generates a similar error if the system
is suspended while the bluetooth usb device is enabled. The sensible
thing to do here seems to be to treat -ENODEV (and -EPERM) just like the
btusb_*_complete() functions now do.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
drivers/bluetooth/btusb.c