From 9cc02fe1366fd008a8c011c59e5defa73b3fb679 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Wed, 31 Mar 2021 09:48:33 -0400 Subject: [PATCH] Turn off remote wakeup in USB configuration descriptor --- ports/raspberrypi/sdk | 2 +- tools/gen_usb_descriptor.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ports/raspberrypi/sdk b/ports/raspberrypi/sdk index 7a6660134ac62..f998690e65c5d 160000 --- a/ports/raspberrypi/sdk +++ b/ports/raspberrypi/sdk @@ -1 +1 @@ -Subproject commit 7a6660134ac6242e3223fe1c78b248caf6b2cbf4 +Subproject commit f998690e65c5df740ef71cd167733dc8c6a11bdd diff --git a/tools/gen_usb_descriptor.py b/tools/gen_usb_descriptor.py index 89bb8a8177a79..9c4efaca3d28e 100644 --- a/tools/gen_usb_descriptor.py +++ b/tools/gen_usb_descriptor.py @@ -612,6 +612,11 @@ def make_cdc_iad(cdc_comm_interface, name): standard.ConfigurationDescriptor.bLength + sum([len(bytes(x)) for x in descriptor_list]) ), bNumInterfaces=len(interfaces), + # bus powered (bit 6), remote wakeup (bit 5), + # bit 7 is always 1 and 0-4 are always 0 + # Turn off remote wakeup until we handle it in CircuitPython. + bmAttributes=0x80, + ) descriptor_list.insert(0, configuration)