Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5a9b80e2 authored by Paul Bolle's avatar Paul Bolle Committed by Gustavo F. Padovan
Browse files

Bluetooth: btusb: also be quiet when suspending



usb_submit_urb() returns -ENODEV when a usb device is disconnected. In
commit 4935f1c1 ("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: default avatarPaul Bolle <pebolle@tiscali.nl>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 3e90dc86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment