Skip to content

Commit 452a53b

Browse files
jfischer-nokartben
authored andcommitted
usb: device_next: hide Kconfig option USBD_MSG_SLAB_COUNT if not used
If deferred mode is not being used, hide the USBD_MSG_SLAB_COUNT option. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
1 parent 91dc04d commit 452a53b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

subsys/usb/device_next/Kconfig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,20 @@ config USBD_MAX_UDC_MSG
7474
help
7575
Maximum number of USB device controller events that can be queued.
7676

77-
config USBD_MSG_SLAB_COUNT
78-
int "Maximum number of USB device notification messages"
79-
range 4 64
80-
default 8
81-
help
82-
Maximum number of USB device notification messages that can be queued.
83-
8477
config USBD_MSG_DEFERRED_MODE
8578
bool "Execute message callback from system workqueue"
8679
default y
8780
help
8881
Execute message callback from system workqueue. If disabled, message
8982
callback will be executed in the device stack context.
9083

84+
config USBD_MSG_SLAB_COUNT
85+
int "Maximum number of USB device notification messages" if USBD_MSG_DEFERRED_MODE
86+
range 4 64
87+
default 8
88+
help
89+
Maximum number of USB device notification messages that can be queued.
90+
9191
config USBD_MSG_WORK_DELAY
9292
int "USB device notification messages work delay" if USBD_MSG_DEFERRED_MODE
9393
range 1 100

0 commit comments

Comments
 (0)