summaryrefslogtreecommitdiff
path: root/sys/conf
diff options
context:
space:
mode:
authorLandry Breuil <landry@cvs.openbsd.org>2018-05-01 18:14:47 +0000
committerLandry Breuil <landry@cvs.openbsd.org>2018-05-01 18:14:47 +0000
commitc9e7c3964bbfdc4be983152cc3929cacb3c94458 (patch)
tree8c92ed669fab71857f9537878a21c62e18f67021 /sys/conf
parent9e3144e4e2a147d8448c24c92f9f1ee3036b9ae4 (diff)
Simplify/refactor the way vendor/product/serial informations are
gathered from usb devices. Cache them early in usbd_new_device() instead of querying the device several times (the content wont change anyway) and uselessly generating usb traffic (which could conflict with other access..) The heuristic stays the same, first look in the device descriptor, then try to match against usb_known_vendors/usb_known_products, then fallback to use the idVendor/idProduct codes. Remove the now useless 'usedev' parameter from usbd_fill_deviceinfo(). Tested from bsd & bsd.rd. suggested by and ok mpi@
Diffstat (limited to 'sys/conf')
0 files changed, 0 insertions, 0 deletions