]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
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)
commit3ee886c5ba77a65d6b2c2a372a091d6796ed502b
treec9d336371596b17e902aeb69bb8f5059a39f059c
parent9b87e19bc7adea69bd55ae9c64b8a7fb81214726
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