From c2bafec03c274fb6e3d4db7b0030f4ad4ab85aa7 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Mon, 27 Nov 2017 10:13:26 +0100 Subject: stm32: update USB version for BOS descriptors Bump the USB version (aka bcdUSB) for BOS descriptors to 2.1 (rather than 2.01) to be compatible with Chrome implementation. The CL 664813 was intending to do this, but I screw up and only changed it for chip/g and let chip/stm32 unchanged : https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/664813 Signed-off-by: Vincent Palatin BRANCH=twinkie BUG=none TEST=manual, plug an updated Twinkie and see the WebUSB pop-up on Chrome. Change-Id: Ia81fa91b6d7790af6f6683c0da7ca1d794b4e4df Reviewed-on: https://chromium-review.googlesource.com/789934 Commit-Ready: Vincent Palatin Tested-by: Vincent Palatin Reviewed-by: Todd Broch --- chip/stm32/usb.c | 4 ++-- chip/stm32/usb_dwc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chip/stm32/usb.c b/chip/stm32/usb.c index c1f39b598d..27ea117de5 100644 --- a/chip/stm32/usb.c +++ b/chip/stm32/usb.c @@ -24,8 +24,8 @@ #define CPRINTF(format, args...) cprintf(CC_USB, format, ## args) #ifdef CONFIG_USB_BOS -/* v2.01 (vs 2.00) BOS Descriptor provided */ -#define USB_DEV_BCDUSB 0x0201 +/* v2.10 (vs 2.00) BOS Descriptor provided */ +#define USB_DEV_BCDUSB 0x0210 #else #define USB_DEV_BCDUSB 0x0200 #endif diff --git a/chip/stm32/usb_dwc.c b/chip/stm32/usb_dwc.c index b37ab46f34..49554c8cb6 100644 --- a/chip/stm32/usb_dwc.c +++ b/chip/stm32/usb_dwc.c @@ -38,8 +38,8 @@ /* Standard USB stuff */ #ifdef CONFIG_USB_BOS -/* v2.01 (vs 2.00) BOS Descriptor provided */ -#define USB_DEV_BCDUSB 0x0201 +/* v2.10 (vs 2.00) BOS Descriptor provided */ +#define USB_DEV_BCDUSB 0x0210 #else #define USB_DEV_BCDUSB 0x0200 #endif -- cgit v1.2.1