aboutsummaryrefslogtreecommitdiff
path: root/kernel/ethosu_capabilities.c
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2023-01-04 17:09:28 +0100
committerKristofer Jonsson <kristofer.jonsson@arm.com>2023-02-02 16:11:45 +0100
commitb42bc0b95dcc5fac60d52e956056fd46bfe2beb9 (patch)
tree3e739e1d609a669cdfef21ffb302fcfb92423ada /kernel/ethosu_capabilities.c
parenta70bfde653b44763e2f4d230d30aa8382c1ac5f9 (diff)
downloadethos-u-linux-driver-stack-b42bc0b95dcc5fac60d52e956056fd46bfe2beb9.tar.gz
Removing watchdog and reset
Removing watchdog and firmware reset as a preparations for the migrations to rpmsg. Change-Id: Ic1053e3f4301ecadbde8c59dbaed437625a0a5ea
Diffstat (limited to 'kernel/ethosu_capabilities.c')
-rw-r--r--kernel/ethosu_capabilities.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/kernel/ethosu_capabilities.c b/kernel/ethosu_capabilities.c
index d5f77f2..9735ee2 100644
--- a/kernel/ethosu_capabilities.c
+++ b/kernel/ethosu_capabilities.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2022 Arm Limited.
+ * Copyright 2022-2023 Arm Limited and/or its affiliates
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
@@ -58,19 +58,6 @@ static void ethosu_capabilities_fail(struct ethosu_mailbox_msg *msg)
complete(&cap->done);
}
-static int ethosu_capabilities_resend(struct ethosu_mailbox_msg *msg)
-{
- struct ethosu_capabilities *cap =
- container_of(msg, typeof(*cap), msg);
-
- /* Don't resend request if response has already been received */
- if (completion_done(&cap->done))
- return 0;
-
- /* Resend request */
- return ethosu_capabilities_send(cap);
-}
-
void ethosu_capability_rsp(struct ethosu_device *edev,
struct ethosu_core_msg_capabilities_rsp *rsp)
{
@@ -126,7 +113,6 @@ int ethosu_capabilities_request(struct ethosu_device *edev,
cap->uapi = uapi;
init_completion(&cap->done);
cap->msg.fail = ethosu_capabilities_fail;
- cap->msg.resend = ethosu_capabilities_resend;
ret = ethosu_mailbox_register(&cap->edev->mailbox, &cap->msg);
if (ret < 0)