usb-host: handle USBDEVFS_SETCONFIGURATION returning EBUSY
commit0fcc3bfc0ff76bc3697f12bd3b795f6b139e6ad0
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 13 Sep 2011 09:55:15 +0000 (13 11:55 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 13 Oct 2011 10:58:51 +0000 (13 12:58 +0200)
tree097f6f0b15b63a7b2281ca1338dd127769f27524
parente627472731c2fe6d42a58ca78855fcd62f58d7c8
usb-host: handle USBDEVFS_SETCONFIGURATION returning EBUSY

In case the host uses the usb device usbfs will refuse to set the
configuration due to the device being busy.  Handle this case by
disconnection the interfaces, then trying again.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-linux.c