arch/sim: Assign virtio vring notifyid to RSC_NOTIFY_ID_ANY

let framework allocate the unique id for us instead

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-08-23 04:17:46 +08:00 committed by Petro Karashchenko
parent 0334819742
commit f3f1dde39b
1 changed files with 2 additions and 0 deletions

View File

@ -115,8 +115,10 @@ sim_rptun_get_resource(struct rptun_dev_s *dev)
rsc->rpmsg_vdev.num_of_vrings = 2; rsc->rpmsg_vdev.num_of_vrings = 2;
rsc->rpmsg_vring0.align = 8; rsc->rpmsg_vring0.align = 8;
rsc->rpmsg_vring0.num = 8; rsc->rpmsg_vring0.num = 8;
rsc->rpmsg_vring0.notifyid = RSC_NOTIFY_ID_ANY;
rsc->rpmsg_vring1.align = 8; rsc->rpmsg_vring1.align = 8;
rsc->rpmsg_vring1.num = 8; rsc->rpmsg_vring1.num = 8;
rsc->rpmsg_vring1.notifyid = RSC_NOTIFY_ID_ANY;
rsc->config.r2h_buf_size = 0x800; rsc->config.r2h_buf_size = 0x800;
rsc->config.h2r_buf_size = 0x800; rsc->config.h2r_buf_size = 0x800;