1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

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>
This commit is contained in:
Patrick Georgi 2010-02-04 08:29:18 +00:00 committed by Patrick Georgi
parent 873599d8a9
commit 975aa7e2c6

View File

@ -294,6 +294,8 @@ int dediprog_init(void)
dev->descriptor.idVendor, dev->descriptor.idVendor,
dev->descriptor.idProduct); dev->descriptor.idProduct);
dediprog_handle = usb_open(dev); dediprog_handle = usb_open(dev);
usb_set_configuration(dediprog_handle, 1);
usb_claim_interface(dediprog_handle, 0);
/* URB 6. Command A. */ /* URB 6. Command A. */
if (dediprog_command_a()) if (dediprog_command_a())
return 1; return 1;