aboutsummaryrefslogtreecommitdiff
path: root/kernel/ethosu_inference.c
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2023-01-04 17:09:47 +0100
committerKristofer Jonsson <kristofer.jonsson@arm.com>2023-02-02 16:23:59 +0100
commitd779a08a0f7ca3cdde16941720ddc7af96e74520 (patch)
tree2b05dc35a14f6787568cf92b1ff539afedffecc9 /kernel/ethosu_inference.c
parentb42bc0b95dcc5fac60d52e956056fd46bfe2beb9 (diff)
downloadethos-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_inference.c')
-rw-r--r--kernel/ethosu_inference.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/ethosu_inference.c b/kernel/ethosu_inference.c
index 58501f7..4f56126 100644
--- a/kernel/ethosu_inference.c
+++ b/kernel/ethosu_inference.c
@@ -25,7 +25,7 @@
#include "ethosu_inference.h"
#include "ethosu_buffer.h"
-#include "ethosu_core_interface.h"
+#include "ethosu_core_rpmsg.h"
#include "ethosu_device.h"
#include "ethosu_network.h"
#include "ethosu_cancel_inference.h"
@@ -413,19 +413,19 @@ int ethosu_inference_put(struct ethosu_inference *inf)
}
void ethosu_inference_rsp(struct ethosu_device *edev,
- struct ethosu_core_inference_rsp *rsp)
+ int msg_id,
+ struct ethosu_core_msg_inference_rsp *rsp)
{
- int id = (int)rsp->user_arg;
struct ethosu_mailbox_msg *msg;
struct ethosu_inference *inf;
int ret;
int i;
- 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 inference msg not found. Id=%d\n",
- id);
+ msg_id);
return;
}