yintao
38af7001b6
drivers/rpmsg: fix the race condtion about rpmsg_device_created
...
xxx_rpmsg_device_created may be called repeatedly.
rptun thread app thread
rptun_dev_start xxx_rpmsg_init
... rpmsg_register_callback
priv->...= rpmsg_ns_unbind;
priv->..= rptun_notify_wait;
if (ns_unbind_cb)
(switch app thread) device_created()
xxx_rpmsg_device_created
metal_list_add_tail(g_cb);
...
rpmsg_device_created();
cb->device_created
xxx_rpmsg_device_created;
Signed-off-by: yintao <yintao@xiaomi.com>
2024-09-14 17:34:52 +08:00
Bowen Wang
1f96a0b5e9
drivers/rpmsg: fix recursive assert when call rpmsg_dump_all() in irq
...
Because call mutex lock is forbidden in interrupt.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-09-14 17:34:52 +08:00
Xiang Xiao
56745e300a
rpmsg: Reformat drivers/rpmsg/rpmsg.c
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-08-27 01:48:16 +08:00
Yongrong Wang
88ec55f6af
rpmsg.c: move onceinit judge logic to common part
...
move rptun/rpmsg_virtio onceinit judge logic to rpmsg_register.
Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
2024-08-27 01:48:16 +08:00
wangyongrong
10a8c2be92
rptun ioctl: Strip rpmsg ioctl and rptun ioctl.
...
rptun ioctl only handle RPTUNIOC_START, RPTUNIOC_STOP, RPTUNIOC_RESET,
rpmsg ioctl handles the public ioctl commands part.
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-02-19 02:15:45 -08:00
wangyongrong
ce832c6377
rptun_ping: Strip rptun_ping out of rptun and rename to rpmsg_ping
...
It should be possible to use ping without rptun being enabled, so striped rptun_ping out of rptun and rename to rpmsg_ping.
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-01-30 04:08:59 -08:00
wangyongrong
5651612f45
rptun: extract rptun char to rpmsg/rpmsg.c
...
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-01-26 00:42:28 -08:00
wangyongrong
5018964155
rpmsgfs: decoupling rpmsgfs server and rpmsg virtio.
...
create a new general api to make rpmsgfs work with virtio/spi/uart transport.
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-01-24 06:52:13 -08:00
wangyongrong
7508a10e20
rptun: Strip rpmsg and rptun
...
nuttx/driver/rpmsg: new folder, extract common rpmsg api in rptun.c to rpmsg.c.
rpmsg provide rpmsg_ops to each backend for specific implementation.
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-01-16 15:58:32 +01:00