diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-02-04 08:29:18 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-02-04 08:29:18 +0000 |
commit | fb7d15ec26e956c3ba81ecbfef9aafc8ea60377f (patch) | |
tree | 379c8b9cd809985264264f1852e58020e6c5d641 /dediprog.c | |
parent | 22f1d3bdccb11eb7eb8c2df69e20a7b9ba7859bc (diff) | |
download | flashrom-fb7d15ec26e956c3ba81ecbfef9aafc8ea60377f.zip flashrom-fb7d15ec26e956c3ba81ecbfef9aafc8ea60377f.tar.gz |
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>
Diffstat (limited to 'dediprog.c')
-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; |