Ticket #701 (closed defect: duplicate)

Opened 6 years ago

Last modified 6 years ago

bInterfaceNumber setting incorrect

Reported by: anrp@… Owned by: laforge@…
Priority: high Milestone:
Component: host utilities Version: current svn head
Severity: normal Keywords:
Cc: buglog@…, anrp@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

bInterfaceNumber setting in usbdfu.c (from uboot-dfu.patch) sets all 5
interfaces to have bInterfaceNumber of 0x00. This is not ordinarily noticed,
however, on win32 with libusb-win32, dfu-util requires usb_set_configuration to
be called which internally causes libusb-win32 to walk the list of interfaces.
It's told that it has 5 interfaces (bNumInterfaces == 5) however they all have
the same ID, which causes libusb-win32 to bail because it can't associate
interface descriptors.

Change History

comment:1 Changed 6 years ago by anrp@…

Actually, maybe that's correct. The proper setup for many-altsetting seems to
require that, so maybe the bug would be in libusb-win32.... have to confirm that
somehow.

comment:2 Changed 6 years ago by anrp@…

With more though (maybe I should have waited an hour...) it looks like
bNumInterfaces should be set to 1, not to 5. If an interface has multiple
alternate settings, they aren't considered an interface in their own right,
apparantly.

comment:3 Changed 6 years ago by anrp@…

  • Status changed from new to closed
  • Resolution set to duplicate

Maybe I should search bugzilla.

* This bug has been marked as a duplicate of 686 *

Note: See TracTickets for help on using tickets.