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