usb-host: limit open retries
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 24 Aug 2011 11:45:06 +0000 (13:45 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 7 Sep 2011 07:50:49 +0000 (09:50 +0200)
commit57e62b491281146ef2d00bdc86b058f8bb8ce014
treec9d336371596b17e902aeb69bb8f5059a39f059c
parent0c47e9dd6bba36eca922b8cafbb6c58256d9ee18
usb-host: limit open retries

Limit the number of times qemu tries to open host devices to three.
Reset error counter when the device goes away, after un-plugging and
re-plugging the device qemu will try again three times.

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