Submitted by Nick Hibma:
bug #22271: usb_reset in usb_libusb.c not necessary in FreeBSD 6.x * usb_libusb.c (usbdev_close): Do not call usb_reset() on FreeBSD. It is not necessary there. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@798 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
3815878ed1
commit
4f4b1bce93
|
@ -1,3 +1,10 @@
|
||||||
|
2009-02-17 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
Submitted by Nick Hibma:
|
||||||
|
bug #22271: usb_reset in usb_libusb.c not necessary in FreeBSD 6.x
|
||||||
|
* usb_libusb.c (usbdev_close): Do not call usb_reset() on FreeBSD.
|
||||||
|
It is not necessary there.
|
||||||
|
|
||||||
2009-02-17 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
2009-02-17 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
Submitted by Andrew O. Shadoura:
|
Submitted by Andrew O. Shadoura:
|
||||||
|
|
|
@ -239,11 +239,14 @@ static void usbdev_close(union filedescriptor *fd)
|
||||||
|
|
||||||
(void)usb_release_interface(udev, usb_interface);
|
(void)usb_release_interface(udev, usb_interface);
|
||||||
|
|
||||||
|
#if defined(__FreeBSD__)
|
||||||
/*
|
/*
|
||||||
* Without this reset, the AVRISP mkII seems to stall the second
|
* Without this reset, the AVRISP mkII seems to stall the second
|
||||||
* time we try to connect to it.
|
* time we try to connect to it. This is not necessary on
|
||||||
|
* FreeBSD.
|
||||||
*/
|
*/
|
||||||
usb_reset(udev);
|
usb_reset(udev);
|
||||||
|
#endif
|
||||||
|
|
||||||
usb_close(udev);
|
usb_close(udev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue