aboutsummaryrefslogtreecommitdiff
path: root/kernel/rpmsg/ethosu_rpmsg_cancel_inference.c
diff options
context:
space:
mode:
authorMikael Olsson <mikael.olsson@arm.com>2024-04-04 17:28:52 +0200
committerMikael Olsson <mikael.olsson@arm.com>2024-04-08 11:33:31 +0200
commitd80345fa00fea2816787ff3864318382edfd4949 (patch)
treedb4fc59187b1da9ee3c0db0410572c0e9302273f /kernel/rpmsg/ethosu_rpmsg_cancel_inference.c
parentb2f4a2cd2de6647c9e6d6d4db9108a81d4757e33 (diff)
downloadethos-u-linux-driver-stack-d80345fa00fea2816787ff3864318382edfd4949.tar.gz
Add additional error logging in NPU driver
To make it easier to distinguish where an error occurred in the NPU driver, additional logging has been added to the error cases. Change-Id: I9d744e7adf3ba3098d456d1f3c2859aa0ce66de4 Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Diffstat (limited to 'kernel/rpmsg/ethosu_rpmsg_cancel_inference.c')
-rw-r--r--kernel/rpmsg/ethosu_rpmsg_cancel_inference.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/rpmsg/ethosu_rpmsg_cancel_inference.c b/kernel/rpmsg/ethosu_rpmsg_cancel_inference.c
index 5fa7515..b07c0ec 100644
--- a/kernel/rpmsg/ethosu_rpmsg_cancel_inference.c
+++ b/kernel/rpmsg/ethosu_rpmsg_cancel_inference.c
@@ -83,8 +83,11 @@ int ethosu_rpmsg_cancel_inference_request(struct device *dev,
devm_kzalloc(dev,
sizeof(struct ethosu_rpmsg_cancel_inference),
GFP_KERNEL);
- if (!cancellation)
+ if (!cancellation) {
+ dev_err(dev, "Cancel inference. Failed to allocate struct");
+
return -ENOMEM;
+ }
/* increase ref count on the inference we are refering to */
ethosu_rpmsg_inference_get(inf);