forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
kernel/drivers/crypto/nx/nx-aes-xcbc.c
....@@ -1,20 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /**
23 * AES XCBC routines supporting the Power 7+ Nest Accelerators driver
34 *
45 * Copyright (C) 2011-2012 International Business Machines Inc.
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; version 2 only.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
186 *
197 * Author: Kent Yoder <yoder1@us.ibm.com>
208 */
....@@ -105,8 +93,7 @@
10593 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg);
10694 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg);
10795
108
- rc = nx_hcall_sync(nx_ctx, &nx_ctx->op,
109
- desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP);
96
+ rc = nx_hcall_sync(nx_ctx, &nx_ctx->op, 0);
11097 if (rc)
11198 goto out;
11299 atomic_inc(&(nx_ctx->stats->aes_ops));
....@@ -134,8 +121,7 @@
134121 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg);
135122 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg);
136123
137
- rc = nx_hcall_sync(nx_ctx, &nx_ctx->op,
138
- desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP);
124
+ rc = nx_hcall_sync(nx_ctx, &nx_ctx->op, 0);
139125 if (rc)
140126 goto out;
141127 atomic_inc(&(nx_ctx->stats->aes_ops));
....@@ -279,8 +265,7 @@
279265 goto out;
280266 }
281267
282
- rc = nx_hcall_sync(nx_ctx, &nx_ctx->op,
283
- desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP);
268
+ rc = nx_hcall_sync(nx_ctx, &nx_ctx->op, 0);
284269 if (rc)
285270 goto out;
286271
....@@ -361,8 +346,7 @@
361346 goto out;
362347 }
363348
364
- rc = nx_hcall_sync(nx_ctx, &nx_ctx->op,
365
- desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP);
349
+ rc = nx_hcall_sync(nx_ctx, &nx_ctx->op, 0);
366350 if (rc)
367351 goto out;
368352