diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-02-04 08:29:18 +0000 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2010-02-04 08:29:18 +0000 |
commit | 975aa7e2c6444ae81352187a2c979fd1de1f405d (patch) | |
tree | 379c8b9cd809985264264f1852e58020e6c5d641 | |
parent | 873599d8a9f2563a6e6893be1511687ade5c949e (diff) | |
download | flashrom-975aa7e2c6444ae81352187a2c979fd1de1f405d.tar.gz flashrom-975aa7e2c6444ae81352187a2c979fd1de1f405d.tar.bz2 flashrom-975aa7e2c6444ae81352187a2c979fd1de1f405d.zip |
Properly initialize USB device in dediprog driver
That's necessary to use bulk transfers, and just the
right thing in any case.
Corresponding to flashrom svn r891.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
-rw-r--r-- | dediprog.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -294,6 +294,8 @@ int dediprog_init(void) dev->descriptor.idVendor, dev->descriptor.idProduct); dediprog_handle = usb_open(dev); + usb_set_configuration(dediprog_handle, 1); + usb_claim_interface(dediprog_handle, 0); /* URB 6. Command A. */ if (dediprog_command_a()) return 1; |