Skip to content
Permalink
Browse files

usb: kconfig: nrf52840: Enable REMOTE_WAKEUP option only when needed

This patch removes the "hard" selection of the USB_DEVICE_REMOTE_WAKEUP
Kconfig option for USB devices made on the nRF52840 SoC. Now it's up to
the application to decide if it wants to enable the option. This change
makes it possible to pass the USB3CV Chapter 9 Tests for applications
that don't use the remote wakeup feature, since when a USB device only
reports that it supports this feature, and the mentioned option makes
it to do so, one of the test cases expects the USB device to actually
perform the remote wakeup. And when the feature is not reported as
supported, the test case is skipped.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
  • Loading branch information...
anangl authored and carlescufi committed Jun 26, 2019
1 parent b30b52a commit 036791364cdb5eb8d00a0a21c98b4beda97b13ae
Showing with 3 additions and 1 deletion.
  1. +0 −1 drivers/usb/device/Kconfig
  2. +3 −0 samples/subsys/usb/hid-mouse/Kconfig
@@ -64,7 +64,6 @@ menuconfig USB_NRF52840
select USB_DEVICE_DRIVER
select HAS_DTS_USB
select NRFX_USBD
select USB_DEVICE_REMOTE_WAKEUP
help
nRF52840 USB Device Controller Driver

@@ -7,4 +7,7 @@
config USB_DEVICE_PID
default USB_PID_HID_MOUSE_SAMPLE

config USB_DEVICE_REMOTE_WAKEUP
default SOC_NRF52840

source "Kconfig.zephyr"

0 comments on commit 0367913

Please sign in to comment.
You can’t perform that action at this time.