[flashrom] [commit] r891 - trunk

repository service svn at flashrom.org
Thu Feb 4 09:29:18 CET 2010


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 <patrick.georgi at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>

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;




More information about the flashrom mailing list