git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8d1585d
)
libftdi: (tomj) applied patch to extend chip reset
author
Thomas Jarosch
<opensource@intra2net.com>
Mon, 1 Nov 2004 18:48:10 +0000 (18:48 +0000)
committer
Thomas Jarosch
<opensource@intra2net.com>
Mon, 1 Nov 2004 18:48:10 +0000 (18:48 +0000)
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
4c6b738
..
b94b731
100644
(file)
--- a/
src/ftdi.c
+++ b/
src/ftdi.c
@@
-186,6
+186,11
@@
int ftdi_usb_reset(struct ftdi_context *ftdi)
ftdi->error_str = "FTDI reset failed";
return -1;
}
+
+ if (usb_reset(ftdi->usb_dev) != 0) {
+ ftdi->error_str = "USB reset failed";
+ return -2;
+ }
// Invalidate data in the readbuffer
ftdi->readbuffer_offset = 0;
ftdi->readbuffer_remaining = 0;