summaryrefslogtreecommitdiffstats
path: root/dediprog.c
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-02-04 08:29:18 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-02-04 08:29:18 +0000
commitfb7d15ec26e956c3ba81ecbfef9aafc8ea60377f (patch)
tree379c8b9cd809985264264f1852e58020e6c5d641 /dediprog.c
parent22f1d3bdccb11eb7eb8c2df69e20a7b9ba7859bc (diff)
downloadflashrom-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dediprog.c b/dediprog.c
index b5037a1..c6d2a30 100644
--- a/dediprog.c
+++ b/dediprog.c
@@ -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;
OpenPOWER on IntegriCloud