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>
diff --git a/dediprog.c b/dediprog.c
index b5037a1..c6d2a30 100644
--- a/dediprog.c
+++ b/dediprog.c
@@ -294,6 +294,8 @@
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;