HomeFreeBSD

usb: use only usb_devinfo() in device_set_usb_desc()

Description

usb: use only usb_devinfo() in device_set_usb_desc()

device_set_usb_desc() first tries to fetch device information through
the iInterface descriptor, otherwise it falls back to usb_devinfo().
Since usb_devinfo() is both guaranteed to work, and is more verbose, get
rid of the initial iInterface attempt.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Reviewed by: imp, markj
Differential Revision: https://reviews.freebsd.org/D43383

(cherry picked from commit 45cd29412eadbb0e8c40590a94b10663addac17a)

Details

Provenance
christosAuthored on Jan 16 2024, 4:49 PM
Reviewer
imp
Differential Revision
D43383: usb: use only usb_devinfo() in device_set_usb_desc()
Parents
rG0452659e53db: pcm.4: mention snd_uaudio auto-load
Branches
Unknown
Tags
Unknown