mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +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:
parent
873599d8a9
commit
975aa7e2c6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user