]> git.baikalelectronics.ru Git - kernel.git/commit
usb: ch9: Add size macro for SSP dev cap descriptor
authorJohn Youn <John.Youn@synopsys.com>
Sat, 6 Feb 2016 01:05:12 +0000 (17:05 -0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:22 +0000 (15:14 +0200)
commitb9994805f2831388d14a8d25942b697eef895542
tree0e5d8aad4c5c142907309bd7fa827d5d65ba273f
parent3dca166a4c59e473d0ee0f0b285b21566f9ec757
usb: ch9: Add size macro for SSP dev cap descriptor

The SuperspeedPlus Device Capability Descriptor has a variable size
depending on the number of sublink speed attributes.

This patch adds a macro to calculate that size. The macro takes one
argument, the Sublink Speed Attribute Count (SSAC) as reported by the
descriptor in bmAttributes[4:0].

See USB 3.1 9.6.2.5, Table 9-19.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
include/uapi/linux/usb/ch9.h