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>
This commit is contained in:
Johann Fischer 2025-06-16 17:03:11 +02:00 committed by Benjamin Cabé
commit 452a53ba1a

View file

@ -74,13 +74,6 @@ config USBD_MAX_UDC_MSG
help
Maximum number of USB device controller events that can be queued.
config USBD_MSG_SLAB_COUNT
int "Maximum number of USB device notification messages"
range 4 64
default 8
help
Maximum number of USB device notification messages that can be queued.
config USBD_MSG_DEFERRED_MODE
bool "Execute message callback from system workqueue"
default y
@ -88,6 +81,13 @@ config USBD_MSG_DEFERRED_MODE
Execute message callback from system workqueue. If disabled, message
callback will be executed in the device stack context.
config USBD_MSG_SLAB_COUNT
int "Maximum number of USB device notification messages" if USBD_MSG_DEFERRED_MODE
range 4 64
default 8
help
Maximum number of USB device notification messages that can be queued.
config USBD_MSG_WORK_DELAY
int "USB device notification messages work delay" if USBD_MSG_DEFERRED_MODE
range 1 100