Messages in this thread |  | | Date | Wed, 4 Dec 2013 20:19:52 -0800 | Subject | Re: [PATCH] usb: core: Abort deauthorization if unsetting configuration fails | From | Julius Werner <> |
| |
> Instead, how about changing usb_set_configuration() so that it will > never fail when the new config is -1? Except perhaps for -ENODEV > errors (the device has been disconnected), which > usb_deauthorize_device() could check for.
Yes, that should work as well. It's really just one autoresume and one disable_lpm that can fail in that case so it shouldn't be too intrusive. I would prefer not to special-case ENODEV though, no need to add more complexity than necessary.
I will write up a new version for that tomorrow.
|  |