From 975aa7e2c6444ae81352187a2c979fd1de1f405d Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 4 Feb 2010 08:29:18 +0000 Subject: 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 Acked-by: Stefan Reinauer --- dediprog.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dediprog.c') diff --git a/dediprog.c b/dediprog.c index b5037a17..c6d2a30f 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; -- cgit v1.2.3