diff options
author | Mikael Olsson <mikael.olsson@arm.com> | 2023-08-16 11:25:12 +0200 |
---|---|---|
committer | Mikael Olsson <mikael.olsson@arm.com> | 2023-08-16 14:11:33 +0200 |
commit | 42699b0ac92cfd7236f44aa6c00caf625b022b79 (patch) | |
tree | b2aedd2308b4a5bb30fbea78b68e768748e00e83 | |
parent | ea209b67470cc17ac006acef453f77734d9cca41 (diff) | |
download | ethos-u-linux-driver-stack-42699b0ac92cfd7236f44aa6c00caf625b022b79.tar.gz |
Add error logs to network info response handling
To make it easier to detect why a network info request failed, logs have
been added to the network info response error handling.
Change-Id: I88d98e08501711912d10068344cef62634ac3889
Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
-rw-r--r-- | kernel/ethosu_network_info.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/ethosu_network_info.c b/kernel/ethosu_network_info.c index 898d48e..724db28 100644 --- a/kernel/ethosu_network_info.c +++ b/kernel/ethosu_network_info.c @@ -150,11 +150,15 @@ void ethosu_network_info_rsp(struct ethosu_mailbox *mailbox, info->errno = 0; if (rsp->status != ETHOSU_CORE_STATUS_OK) { + dev_err(dev, "Failed to get information about the network\n"); info->errno = -EBADF; goto signal_complete; } if (rsp->ifm_count > ETHOSU_FD_MAX || rsp->ofm_count > ETHOSU_FD_MAX) { + dev_err(dev, + "Invalid number of IFMs/OFMs in network info: IFMs=%u OFMs=%u\n", + rsp->ifm_count, rsp->ofm_count); info->errno = -ENFILE; goto signal_complete; } |