Update some patch for uadk from mainline. To get more infomation, please visit the homepage: https://github.com/Linaro/uadk Signed-off-by: Yang Shen <shenyang39@huawei.com>
42 lines
1.1 KiB
Diff
42 lines
1.1 KiB
Diff
From ef361818b1a67a6540ea4b0d2538090eea56863e Mon Sep 17 00:00:00 2001
|
|
From: Wenkai Lin <linwenkai6@hisilicon.com>
|
|
Date: Sat, 15 Jan 2022 16:53:58 +0800
|
|
Subject: [PATCH 45/53] uadk: ioctl return result should be printed
|
|
|
|
ioctl return result may be discarded,
|
|
it is useful to debug kernel error,
|
|
so it should be printed directly.
|
|
|
|
Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
|
|
---
|
|
wd.c | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/wd.c b/wd.c
|
|
index 787d74b..6bbf677 100644
|
|
--- a/wd.c
|
|
+++ b/wd.c
|
|
@@ -386,7 +386,8 @@ int wd_ctx_start(handle_t h_ctx)
|
|
|
|
ret = wd_ctx_set_io_cmd(h_ctx, UACCE_CMD_START, NULL);
|
|
if (ret)
|
|
- WD_ERR("Fail to start on %s (%d).\n", ctx->dev_path, -errno);
|
|
+ WD_ERR("Fail to start on %s (%d), ret = %d!\n",
|
|
+ ctx->dev_path, -errno, ret);
|
|
|
|
return ret;
|
|
}
|
|
@@ -401,7 +402,8 @@ int wd_release_ctx_force(handle_t h_ctx)
|
|
|
|
ret = wd_ctx_set_io_cmd(h_ctx, UACCE_CMD_PUT_Q, NULL);
|
|
if (ret)
|
|
- WD_ERR("Fail to stop on %s (%d).\n", ctx->dev_path, -errno);
|
|
+ WD_ERR("Fail to stop on %s (%d), ret = %d!\n",
|
|
+ ctx->dev_path, -errno, ret);
|
|
|
|
return ret;
|
|
}
|
|
--
|
|
2.25.1
|
|
|