zephyr/samples/subsys
Tomasz Moń 75109707e3 usb: device_next: Do not add serial number without HWINFO
For many devices iSerialNumber is not required. The only device class
currently supported in Zephyr that requires iSerialNumber is MSC. If the
serial number is not available then iSerialNumber must be 0. Failure to
read the string descriptor for non-zero iSerialNumber fails USB Command
Verifier Chapter 9 tests.

When USBD_DESC_SERIAL_NUMBER_DEFINE() was used without CONFIG_HWINFO
then it did lead to runtime failure when requesting the string (thus
failing certification).

Fail USBD_DESC_SERIAL_NUMBER_DEFINE() at build-time if CONFIG_HWINFO is
not set to prevent the surprise at runtime. Only define serial number
descriptors if CONFIG_HWINFO is enabled.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-03-26 16:18:56 +01:00
..
bindesc tests/samples: use integration platforms where possible 2025-03-11 11:35:15 +01:00
canbus
console
dap samples: dap: use new USB device stack and new DAP backend USB 2025-03-11 18:54:24 +01:00
debug samples/subsys/debug/fuzz: Remove support for native_posix 2025-03-07 19:16:14 +01:00
demand_paging
display samples: display: lvgl: add support for rtk7eka6m3b00001bu shield 2025-03-21 14:17:21 +01:00
edac
fs test: fs: enable fstab devicetree integration for fatfs 2025-03-15 13:07:40 +01:00
input
ipc samples: openamp_rsc_table: enable support for imx95_evk 2025-03-24 12:17:53 +01:00
llext samples: llext: shell_loader: add hello_world.c, update README 2025-01-29 11:04:33 +01:00
logging samples: Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00
lorawan samples: subsys: lorawan: callback registration for handle descriptor 2025-03-07 19:42:56 +01:00
mgmt net: lib: tls_credentials: Rename TLS_CREDENTIAL_SERVER_CERTIFICATE 2025-03-21 14:18:52 +01:00
modbus samples: fix zephyr/drivers/gpio.h usage 2024-12-18 18:15:15 +01:00
nvs sample: nvs: add NVS sample Kconfig 2025-03-17 13:57:54 +01:00
pm samples/subsys/pm/latency: Remove native_posix overlays 2025-03-07 19:16:14 +01:00
portability
profiling
rtio samples: doc: Added README for RTIO sample 2024-12-16 15:55:34 +01:00
sensing
settings samples: subsys: settings: Extend sample timeout 2025-03-22 02:41:15 +01:00
shell drivers uart_native_posix: rename to native_pty and support N instances 2025-03-11 18:54:02 +01:00
sip_svc
smf
task_wdt samples: task_wdt: Use wdt device if it is ready 2025-03-19 01:24:56 +01:00
testsuite drivers uart_native_posix: rename to native_pty and support N instances 2025-03-11 18:54:02 +01:00
tracing boards: mimxrt1050_evk: Switch to variants 2024-12-20 22:59:59 +01:00
usb usb: device_next: Do not add serial number without HWINFO 2025-03-26 16:18:56 +01:00
usb_c samples: fix zephyr/drivers/gpio.h usage 2024-12-18 18:15:15 +01:00
zbus drivers uart_native_posix: rename to native_pty and support N instances 2025-03-11 18:54:02 +01:00
subsys.rst