nuttx/include/nuttx/rpmsg
Bowen Wang 877a9af2d1 rpmsg_virtio/rptun: support fallback cpuname when VIRTIO_RPMSG_F_CPUNAME not set
When the VIRTIO_RPMSG_F_CPUNAME feature is not negotiated, the driver
previously would crash due to DEBUGASSERT. This commit adds support
for a fallback mechanism:

1. Add rpmsg_virtio_probe_cpuname() API that accepts an optional cpuname
   parameter to be used when VIRTIO_RPMSG_F_CPUNAME is not available.

2. Modify rptun driver to pass the cpuname from rptun device config
   to rpmsg_virtio_probe_cpuname().

3. Refactor rptun device register/unregister to prioritize RPMSG device
   handling before other virtio device types.

This ensures the system works correctly in scenarios where the remote
side does not support the VIRTIO_RPMSG_F_CPUNAME feature.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-02-04 20:01:13 -03:00
..
rpmsg.h drivers/rpmsg: add rpmsg_get_timestamp to retrieve buffer timestamps 2026-02-01 01:14:49 +08:00
rpmsg_ping.h rpmsg_ping.c: change msg cmd type for more compatible 2024-10-11 14:59:26 +08:00
rpmsg_port.h style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
rpmsg_router.h include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
rpmsg_virtio.h rpmsg_virtio/rptun: support fallback cpuname when VIRTIO_RPMSG_F_CPUNAME not set 2026-02-04 20:01:13 -03:00
rpmsg_virtio_ivshmem.h include: migrate to SPDX identifier 2024-10-04 08:18:42 +08:00
rpmsg_virtio_lite.h rpmsg/rpmsg_virtio_lite: rename rpmsg_virtio to rpmsg_virtio_lite 2024-12-28 22:43:20 -03:00