Skip to content

Commit dd27304

Browse files
benedekkuppertmon-nordic
authored andcommitted
[nrf fromtree] usb: device_next: USB reset clears remote wakeup permission
Verbatim from USB 2.0 specification: The Remote Wakeup field indicates whether the device is currently enabled to request remote wakeup. The default mode for devices that support remote wakeup is disabled. If D1 is reset to zero, the ability of the device to signal remote wakeup is disabled. If D1 is set to one, the ability of the device to signal remote wakeup is enabled. The Remote Wakeup field can be modified by the SetFeature() and ClearFeature() requests using the DEVICE_REMOTE_WAKEUP feature selector. This field is reset to zero when the device is reset. Signed-off-by: Benedek Kupper <[email protected]> (cherry picked from commit a6b911f) Signed-off-by: Tomasz Moń <[email protected]>
1 parent 03154b6 commit dd27304

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/usb/device_next/usbd_core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ static int event_handler_bus_reset(struct usbd_context *const uds_ctx)
127127

128128
uds_ctx->ch9_data.state = USBD_STATE_DEFAULT;
129129

130+
uds_ctx->status.rwup = false;
131+
130132
return 0;
131133
}
132134

0 commit comments

Comments
 (0)