Branch: refs/heads/main Home: https://github.com/OpenAMP/open-amp Commit: a5d7f13538b44c01373f62c1c99e6ccf01fbccd3 https://github.com/OpenAMP/open-amp/commit/a5d7f13538b44c01373f62c1c99e6ccf0... Author: Andrew Davis afd@ti.com Date: 2024-04-09 (Tue, 09 Apr 2024)
Changed paths: M lib/rpmsg/rpmsg_virtio.c
Log Message: ----------- rpmsg_virtio: Do not make assumptions on struct member order
In rpmsg_virtio_ns_callback() we directly case from rpmsg_device* to rpmsg_virtio_device*. This only works if rdev is the first member. Use metal_container_of() to remove this assumption on struct order.
Signed-off-by: Andrew Davis afd@ti.com
Commit: e76e4cbdfff3259abf3b1090ee1c553165a89668 https://github.com/OpenAMP/open-amp/commit/e76e4cbdfff3259abf3b1090ee1c55316... Author: Andrew Davis afd@ti.com Date: 2024-04-09 (Tue, 09 Apr 2024)
Changed paths: M lib/rpmsg/rpmsg.c M lib/rpmsg/rpmsg_internal.h M lib/rpmsg/rpmsg_virtio.c
Log Message: ----------- rpmsg: Allow private endpoint data to be set in rpmsg_register_endpoint
There is a private data member in the endpoint struct that is passed into the callback, but there is no way to populate it. Add this to the endpoint register function.
Signed-off-by: Andrew Davis afd@ti.com
Commit: c245b3b534e5bc49e4c2e391a960026fcc607808 https://github.com/OpenAMP/open-amp/commit/c245b3b534e5bc49e4c2e391a960026fc... Author: Andrew Davis afd@ti.com Date: 2024-04-09 (Tue, 09 Apr 2024)
Changed paths: M lib/rpmsg/rpmsg_virtio.c
Log Message: ----------- rpmsg_virtio: Use priv data in name service callback
The callback allows us to add private data. Use that to store our rpmsg_device instance instead of extracting it from the endpoint struct. The contents of that struct are internal to the RPMsg layer.
Signed-off-by: Andrew Davis afd@ti.com
Compare: https://github.com/OpenAMP/open-amp/compare/89a8a3002fc0...c245b3b534e5
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/open-amp/settings/notifications
openamp-rp@lists.openampproject.org