Author: oxygene
Date: Thu Feb  4 09:29:18 2010
New Revision: 891
URL: http://flashrom.org/trac/coreboot/changeset/891

Log:
Properly initialize USB device in dediprog driver.
That's necessary to use bulk transfers, and just the
right thing in any case.

Signed-off-by: Patrick Georgi <[email protected]>
Acked-by: Stefan Reinauer <[email protected]>

Modified:
   trunk/dediprog.c

Modified: trunk/dediprog.c
==============================================================================
--- trunk/dediprog.c    Thu Feb  4 03:40:16 2010        (r890)
+++ trunk/dediprog.c    Thu Feb  4 09:29:18 2010        (r891)
@@ -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;

_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to