Commit graph zephyr/subsys
Author SHA1 Message Date
Pieter De Gendt
4251e01754 net: shell: dns: Make DNS info message queue size configurable
In large networks there can be many DNS responses, make the DNS info queue
size configurable to prevent dropping messages

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-13 09:50:47 -06:00
Seppo Takalo
5fb307a98a modem: backends: uart_async: Prevent closing twice
When modem_pipe_notify_closed() is removed from pipe->close() call,
we rely on the UART callback to notify when the UART is closed.

If we call uart_rx_disable() twice, we might lose the callback,
and the pipe status stays open.

This happens when modem_cellular_run_shutdown_script_event_handler() calls
modem_pipe_close_async() followed by modem_cellular_enter_state(IDLE)
which also calls modem_pipe_close_async().

Prevent side-effects of calling the close twice, by checking the already
existing atomic bit.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2026-02-13 09:49:54 -06:00
Benjamin Cabé
090e351e0a fs: shell: adopt SHELL_HELP in FS shell
Use SHELL_HELP macro for help strings to ensure consistency across
various shell modules.
This also documents the usage for each command.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-13 09:46:18 -06:00
Benjamin Cabé
a6c663d16c fs: shell: use proper parameter validation for fs shell test commands
Rather than manually checking the number of arguments and printing an
error message, let the shell subsytem handle the validation for us by
indicating all arguments as required.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-13 09:46:18 -06:00
Muhammad Waleed Badar
4490c05eef usb: device_next: shell: adopt SHELL_HELP macro
Convert USB device shell command help strings to use the
SHELL_HELP() macro instead of inline help text.

This aligns the USB device shell with the updated shell help
formatting used across the tree and ensures consistent
presentation of command descriptions and argument usage.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-02-13 13:56:04 +01:00
Benjamin Cabé
b710a9ec77 doc: include: drop funcprops Doxygen alias
The "@funcprops" Doxygen alias was originally introduced to list all
the function properties that apply to a given function (e.g. isr_ok,
etc.) in the form of a bullet list. However, since commit a258ab32d1
that is no longer the case and all the properties are rendered as
qualifiers (https://www.doxygen.nl/manual/commands.html#cmdqualifier)
and therefore no longer need to be grouped in a separate list.

This commit also ensure all aliases for the actual qualifiers use
`@qualifier` notation instead of `\qualifier` to be consistent with
our Doxygen guidelines.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-13 13:55:40 +01:00
Emil Gydesen
8d904e186b Bluetooth: TBS: Client: Fix reset issue with net_buf
The net_buf was always initialized with net_buf_simple_init_with_data
which was a bit wasteful as we only need to do that once. Since `inst`
is `static`ally allocated, we can check for `.data == NULL`.

Additionally the read callbacks expect the buffer to be 0-initialized
between each usage, which wasn't the case. We can use the `buf.len`
to determine how many bytes we need to reset to `0`.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-13 12:37:31 +01:00
Tom Burdick
cd1cc1c0ca rtio: Make the cacheline struct size check optional
This check was asserting on the wrong struct size and was not taking in
the architecture configured cache line size. The build assert now checks
the right struct size and takes into account the configured cache line
size or sets a default.

Additional makes the check entire opt in.

Signed-off-by: Tom Burdick <thomas.burdick@infineon.com>
2026-02-13 10:06:50 +01:00
Tom Burdick
b91a201b15 rtio: Make OP_DELAY optional
OP_DELAY requires embedding in the submission queue entry a _timeout
struct which can push the struct size over the specified 64 byte (cache
line) limit.

Signed-off-by: Tom Burdick <thomas.burdick@infineon.com>
2026-02-13 10:06:50 +01:00
Johann Fischer
eee1fa2d2c usb: usbip: use recently introduce zsock_send_all()
zsock_send() does not necessarily have to send the entire data. Use the
recently introduced function zsock_send_all().

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2026-02-13 10:05:52 +01:00
Johann Fischer
6f602ded27 usb: usbip: retry if the UHC transfer allocation fails
Depending on the server, functions, and client application, we may
get out of transfers very quickly. To throttle here may allow
submitted transfers to be finished.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2026-02-13 10:05:52 +01:00
Johann Fischer
665ab07831 usb: usbip: use variable buffer pool for URB data
UHC transfer handling and assignment of completed transfers to URB
sequences relies on the buf->size. For that, we can just use variable
net_buf pools instead of fixed. Perhaps it gives us also better
utilization of the buffer.

Add Kconfig optons to configure pool size and number of buffers
and use large default pool size for native_sim platform.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2026-02-13 10:05:52 +01:00
Johann Fischer
c9e105873a usb: usbip: improve completion handling when client disconnects
Make request completion handling a bit more robust when, for whatever
reason, the connection has been closed. Do not implicitly clear the USB
device pointer on client disconnect, to allow the completion callback to
clean up. Before handling USBIP_RET_SUBMIT, check whether the device is
still exported, and if not, just drop completed transfer.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2026-02-13 10:05:52 +01:00
Pieter De Gendt
baba005e03 net: dns: resolve: Take lock before calling dns_resolve_init_locked
The mutex should be held when calling dns_resolve_init_locked as mentioned
in a comment above the function.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-12 14:32:19 +00:00
Herman Berget
62e12edb19 Bluetooth: Host: Use HCI VS command to set public addr on bt_enable
The current way of setting the public address using
`bt_hci_driver_api::setup` does not work well in split builds
where host and controller runs on different cores/socs/boards.
This approach requires each HCI driver and each `hci_<transport>`
application to implement the setup and pass the information on
to the next layer.

Zephyr already defines a vendor-specific command that can be used
to set the public address (`bt_hci_cp_vs_write_bd_addr`).
Use this in `bt_enable` after opening the HCI transport and before
initializing the id module. This makes the setup independent of
hci transport and only depends on a controller that implements the
Zephyr HCI VS commands.

Signed-off-by: Herman Berget <herman.berget@nordicsemi.no>
2026-02-12 14:29:44 +00:00
Jamie McCrae
cf972fbba3 retention: Use offset for offset of retention node
Uses the offset instead of the absolute address, to align with a
properly defined DTS layout

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-02-12 14:29:31 +00:00
Johann Fischer
0c31b37525 usb: move instances Kconfig template to common directory
Move the Kconfig template to configure the number of instances in, for
example, functions or class drivers, to a common directory.
This makes it less confusing when used in host support.

Template was not used in CDC ECM function and can be removed.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2026-02-12 14:28:18 +00:00
Alex Ciascai
cb9f5f8be0 bluetooth: tbs: fix Join opcode result for PTS conformance
Update the Join handler to return BT_TBS_RESULT_CODE_OPERATION_NOT_POSSIBLE

Signed-off-by: Alex Ciascai <ciascai.alexandru@gmail.com>
2026-02-12 14:27:07 +00:00
Dominik Ermel
919a4f1601 kvss: Move NVS and ZMS headers under kvss subdir
Move them out of fs to kvss.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2026-02-12 10:55:27 +01:00
Dominik Ermel
b9fcb5efa4 kvss: Create Key-Value Storage subsystem
Add new subsystem and move NVS and ZMS under that subsystem.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2026-02-12 10:55:27 +01:00
Evgenii Kosenko
6b1b725ed2 Bluetooth: Shell: Fix GATT UUID race condition with per-operation storage
The static global UUID variable in the GATT shell module was shared across
all concurrent discover and read-by-uuid operations, creating a potential
race condition where one operation could overwrite the UUID before another
completed. Move UUID storage into the per-operation gatt_op_context
structure to isolate UUID state for each operation. This enables safe
concurrent operations without data corruption.

Signed-off-by: Evgenii Kosenko <Evgenii.Kosenko@silabs.com>
2026-02-12 09:30:18 +01:00
Fin Maaß
31864334b3 fs: reduce usages of strlen()
for checking the first two chars of a string
we don't need to get the full lenght, we can simply
just check the 2 chars, especially as we already check
the first one already.

in `fs_opendir` we only need to check the first char.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-02-11 17:49:35 -06:00
Pieter De Gendt
20d62fe4e0 shell: Add shell_readline helper
Introduce a helper function to wait for user input with a timeout.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-11 17:47:50 -06:00
Pieter De Gendt
186597eb99 shell: dummy: Add input buffer
Allow reading from the dummy shell backend, useful for testing purposes.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-11 17:47:50 -06:00
Emil Gydesen
971578a123 Bluetooth: TBS: Fix issues with friendly name buffer sizes
The friendly name buffer sizes used the URI length, but since
the friendly name is specifically not an URI that did not make
sense. Added a new Kconfig option to configure the maximum
supported friendly name, which is shared between both TBS
and the TBS client, similar to the other max Kconfig options.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-11 17:47:36 -06:00
Kristoffer Skøien
c966a54549 Bluetooth: BAP: Direction fix
Bugfix, changed from source to sink in bt_bap_unicast_group_reconfig

Signed-off-by: Kristoffer Skøien <kristoffer.skoien@nordicsemi.no>
2026-02-11 16:34:13 +01:00
Pieter De Gendt
b317afd845 nvmem: Add support for BBRAM
Add a new NVMEM backend for Battery Backed RAM.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-11 10:39:41 +01:00
Aiden Hu
0b6930e66d usb: host: fix usbh_bus_thread name setting
Use correct thread data pointer when setting bus thread name.

Signed-off-by: Aiden Hu <weiwei.hu@nxp.com>
2026-02-11 07:59:17 +01:00
Sean Kyer
21fdd4f3dc cpu_freq: pressure: Add silent macro fix
Silently set the threshold weight to be the
lowest_thread_prio in case of being set too
high.

Signed-off-by: Sean Kyer <sean.actor@gmail.com>
2026-02-11 07:56:44 +01:00
Sean Kyer
ebf64aeb2d cpu_freq: on_demand: Fix wording of comment
Change comment from "increasing" order to "decreasing"
since the 0th indexed Pstate must have the highest
threshold.

Signed-off-by: Sean Kyer <sean.actor@gmail.com>
2026-02-11 07:56:44 +01:00
Emil Gydesen
4fe38bbaed Bluetooth: VOCS: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:42:46 -06:00
Emil Gydesen
257e1eb2e3 Bluetooth: VCP: REND: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:42:24 -06:00
Emil Gydesen
c5061b76ab Bluetooth: VCP: CTLR: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:42:07 -06:00
Emil Gydesen
c6562e70d7 Bluetooth: TMAP: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:41:49 -06:00
Emil Gydesen
8c29bb0b62 Bluetooth: TBS: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:41:28 -06:00
Emil Gydesen
50d57b2cee Bluetooth: TBS: Client: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:41:06 -06:00
Emil Gydesen
8d63fa7eea Bluetooth: PBP: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:40:43 -06:00
Emil Gydesen
ef0726fbc0 Bluetooth: PACS: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:40:21 -06:00
Emil Gydesen
833e3cbbae Bluetooth: MICP: MIC: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:40:03 -06:00
Emil Gydesen
a0eeb3400a Bluetooth: MICP: CTLR: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:39:21 -06:00
Emil Gydesen
4766ca1576 Bluetooth: MCC: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:38:56 -06:00
Emil Gydesen
66a7da33f7 Bluetooth: HAS: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:38:38 -06:00
Emil Gydesen
b1d8341b07 Bluetooth: HAS: Client: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:38:08 -06:00
Emil Gydesen
29cd613a7b Bluetooth: GMAP: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:37:44 -06:00
Emil Gydesen
48ec3217df Bluetooth: CSIP: Member: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:37:14 -06:00
Emil Gydesen
38301cd1b0 Bluetooth: CSIP: Coordinator: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:36:46 -06:00
Emil Gydesen
b0a78bb87c Bluetooth: Audio: Codec: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:36:20 -06:00
Emil Gydesen
03868cc875 Bluetooth: CCP: Server: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:35:35 -06:00
Emil Gydesen
9a80dd1bfc Bluetooth: CCP: Client: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:34:54 -06:00
Emil Gydesen
52b6138b03 Bluetooth: CAP: Stream: Replace CHECKIF with if
The usage of CHECKIF has been replaced with a regular
if. The reason for this is that higher layer may depend
on some of the checks defined by the API, and the higher
layers cannot do that properly if the checks can be
removed via a Kconfig option.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 13:33:51 -06:00