]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r368659 and r368664:
authorHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 15 Dec 2020 12:05:07 +0000 (12:05 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 28 Dec 2020 13:04:56 +0000 (14:04 +0100)
commitf3d75bed5475b15f21edf4052665b1212b548bd0
tree2580d35864337afe4d262e287d956bed7feead1e
parent4f89b6f56fb65c0b4a41875e21967a11ec28d837
MFC r368659 and r368664:
Improve handling of alternate settings in the USB stack.

Allow setting the alternate interface number to fail when there is only
one alternate setting present, to comply with the USB specification.

Refactor how iface->num_altsetting is computed.

Bump the __FreeBSD_version due to change of core USB structure.

PR: 251856
Submitted by: Ma, Horse <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies // NVIDIA Networking
sys/compat/linuxkpi/common/src/linux_usb.c
sys/dev/usb/usb_device.c
sys/dev/usb/usb_request.c
sys/dev/usb/usbdi.h
sys/sys/param.h