aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorIgor Kotrasinski <[email protected]>2015-08-20 10:00:01 +0200
committerFelipe Balbi <[email protected]>2015-10-09 16:35:20 -0500
commit5527e73305e8a9958b00331902a27514e62d539b (patch)
treef69ef56a827a08bd1ff24abecc05c83dbd7ac3a3 /lib/netdev-notifier-error-inject.c
parentf301fe22bab90a0377096bfd831ef7c99ece1a40 (diff)
usb: gadget: composite: fill bcdUSB for any gadget max speed
When handling device GET_DESCRIPTOR, composite gadget driver fills the bcdUSB field only if the gadget supports USB 3.0. Otherwise the field is left unfilled. For consistency, set bcdUSB to 0x0200 for gadgets that don't support superspeed. It's correct to use 0x0200 for any setting that doesn't use superspeed, since USB 2.0 devices can restrict themselves to full speed only. It is NOT correct to use 0x0210, since BOS descriptors are handled only if gadget_is_superspeed() is satisfied, otherwise it results in a stall. Signed-off-by: Igor Kotrasinski <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions