diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2023-01-04 17:09:47 +0100 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2023-02-02 16:23:59 +0100 |
commit | d779a08a0f7ca3cdde16941720ddc7af96e74520 (patch) | |
tree | 2b05dc35a14f6787568cf92b1ff539afedffecc9 /kernel/ethosu_capabilities.c | |
parent | b42bc0b95dcc5fac60d52e956056fd46bfe2beb9 (diff) | |
download | ethos-u-linux-driver-stack-d779a08a0f7ca3cdde16941720ddc7af96e74520.tar.gz |
Converting Ethos-U driver to rpmsg
The Ethos-U kernel driver has been converted from a
platform driver with a custom firmware interface into a
rpmsg driver.
Change-Id: I9ae449f5e79eb02924e6630611d0893e5fec86be
Diffstat (limited to 'kernel/ethosu_capabilities.c')
-rw-r--r-- | kernel/ethosu_capabilities.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/ethosu_capabilities.c b/kernel/ethosu_capabilities.c index 9735ee2..57db452 100644 --- a/kernel/ethosu_capabilities.c +++ b/kernel/ethosu_capabilities.c @@ -24,6 +24,7 @@ #include "ethosu_capabilities.h" +#include "ethosu_core_rpmsg.h" #include "ethosu_device.h" #include <linux/delay.h> @@ -59,17 +60,17 @@ static void ethosu_capabilities_fail(struct ethosu_mailbox_msg *msg) } void ethosu_capability_rsp(struct ethosu_device *edev, + int msg_id, struct ethosu_core_msg_capabilities_rsp *rsp) { - int id = (int)rsp->user_arg; struct ethosu_mailbox_msg *msg; struct ethosu_capabilities *cap; - msg = ethosu_mailbox_find(&edev->mailbox, id); + msg = ethosu_mailbox_find(&edev->mailbox, msg_id); if (IS_ERR(msg)) { dev_warn(edev->dev, "Id for capabilities msg not found. id=%d\n", - id); + msg_id); return; } |