summaryrefslogtreecommitdiffstats
path: root/dediprog.c
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-02-04 08:29:18 +0000
committerPatrick Georgi <pgeorgi@google.com>2010-02-04 08:29:18 +0000
commit975aa7e2c6444ae81352187a2c979fd1de1f405d (patch)
tree379c8b9cd809985264264f1852e58020e6c5d641 /dediprog.c
parent873599d8a9f2563a6e6893be1511687ade5c949e (diff)
downloadast2050-flashrom-975aa7e2c6444ae81352187a2c979fd1de1f405d.zip
ast2050-flashrom-975aa7e2c6444ae81352187a2c979fd1de1f405d.tar.gz
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>
Diffstat (limited to 'dediprog.c')
-rw-r--r--dediprog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dediprog.c b/dediprog.c
index b5037a1..c6d2a30 100644
--- a/dediprog.c
+++ b/dediprog.c
@@ -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;
OpenPOWER on IntegriCloud