mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Make.defs | ||
| rpmsg.c | ||
| rpmsg.h | ||
| rpmsg_ping.c | ||
| rpmsg_ping.h | ||
| rpmsg_port.c | ||
| rpmsg_port.h | ||
| rpmsg_port_spi.c | ||
| rpmsg_port_spi_slave.c | ||
| rpmsg_port_uart.c | ||
| rpmsg_router.h | ||
| rpmsg_router_edge.c | ||
| rpmsg_router_hub.c | ||
| rpmsg_test.c | ||
| rpmsg_test.h | ||
| rpmsg_virtio.c | ||
| rpmsg_virtio_ivshmem.c | ||
| rpmsg_virtio_lite.c | ||