sysclk-lwla: Remove double USB set configuration
This was a pointless attempt to make the reset hiccups go away. It didn't help, the problem must be something else.
This commit is contained in:
parent
7ed808179f
commit
567674b4f8
|
@ -274,11 +274,7 @@ static int dev_open(struct sr_dev_inst *sdi)
|
||||||
if (ret != SR_OK)
|
if (ret != SR_OK)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
/* Set the configuration twice to trigger a lightweight reset.
|
|
||||||
*/
|
|
||||||
ret = libusb_set_configuration(usb->devhdl, USB_CONFIG);
|
ret = libusb_set_configuration(usb->devhdl, USB_CONFIG);
|
||||||
if (ret == 0)
|
|
||||||
ret = libusb_set_configuration(usb->devhdl, USB_CONFIG);
|
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
sr_err("Failed to set USB configuration: %s.",
|
sr_err("Failed to set USB configuration: %s.",
|
||||||
libusb_error_name(ret));
|
libusb_error_name(ret));
|
||||||
|
|
Loading…
Reference in New Issue