DescriptionCache important USB string descriptors all at once.
On platforms without udev support we must open a libusb device handle
in order to read string descriptors from the device. Rapidly opening
and closing the handle could cause problems with the platform's USB
stack so this patch caches the manufacturer, product and serial number
strings all at once. It also prevents a leak of the device handle by
explicitly closing it.
BUG=346953
Committed: https://crrev.com/838d2a5ce4b9fe2ece0d7202c5ea2dfe173aeb89
Cr-Commit-Position: refs/heads/master@{#300116}
Patch Set 1 : #Patch Set 2 : Fixed typo. #
Messages
Total messages: 8 (3 generated)
|