From 452a53ba1a28747ca48a86e16a77ea3d8e1e7185 Mon Sep 17 00:00:00 2001 From: Johann Fischer Date: Mon, 16 Jun 2025 17:03:11 +0200 Subject: [PATCH] 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 --- subsys/usb/device_next/Kconfig | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/subsys/usb/device_next/Kconfig b/subsys/usb/device_next/Kconfig index 987ef5e546e..b72de53f0b3 100644 --- a/subsys/usb/device_next/Kconfig +++ b/subsys/usb/device_next/Kconfig @@ -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