summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2020-01-31 06:10:35 +0300
committerFelipe Balbi <balbi@kernel.org>2020-02-11 09:45:45 +0300
commitc724417baf162bd3e035659e22cdf990cfb0d917 (patch)
treef35b42b2db5a606330f8ccbb9f7d56c1bbd21e87 /tools/perf/scripts/python/export-to-postgresql.py
parent904967c60d87393a3708fed2324b684cdb79b1ee (diff)
downloadlinux-c724417baf162bd3e035659e22cdf990cfb0d917.tar.xz
usb: gadget: composite: Fix bMaxPower for SuperSpeedPlus
SuperSpeedPlus peripherals must report their bMaxPower of the configuration descriptor in units of 8mA as per the USB 3.2 specification. The current switch statement in encode_bMaxPower() only checks for USB_SPEED_SUPER but not USB_SPEED_SUPER_PLUS so the latter falls back to USB 2.0 encoding which uses 2mA units. Replace the switch with a simple if/else. Fixes: eae5820b852f ("usb: gadget: composite: Write SuperSpeedPlus config descriptors") Signed-off-by: Jack Pham <jackp@codeaurora.org> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions