forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/crypto/ux500/cryp/cryp.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /**
23 * Copyright (C) ST-Ericsson SA 2010
34 * Author: Shujuan Chen <shujuan.chen@stericsson.com> for ST-Ericsson.
....@@ -5,7 +6,6 @@
56 * Author: Niklas Hernaeus <niklas.hernaeus@stericsson.com> for ST-Ericsson.
67 * Author: Joakim Bech <joakim.xx.bech@stericsson.com> for ST-Ericsson.
78 * Author: Berne Hebark <berne.herbark@stericsson.com> for ST-Ericsson.
8
- * License terms: GNU General Public License (GPL) version 2
99 */
1010
1111 #include <linux/errno.h>
....@@ -314,14 +314,17 @@
314314 case CRYP_KEY_SIZE_256:
315315 ctx->key_4_l = readl_relaxed(&src_reg->key_4_l);
316316 ctx->key_4_r = readl_relaxed(&src_reg->key_4_r);
317
+ fallthrough;
317318
318319 case CRYP_KEY_SIZE_192:
319320 ctx->key_3_l = readl_relaxed(&src_reg->key_3_l);
320321 ctx->key_3_r = readl_relaxed(&src_reg->key_3_r);
322
+ fallthrough;
321323
322324 case CRYP_KEY_SIZE_128:
323325 ctx->key_2_l = readl_relaxed(&src_reg->key_2_l);
324326 ctx->key_2_r = readl_relaxed(&src_reg->key_2_r);
327
+ fallthrough;
325328
326329 default:
327330 ctx->key_1_l = readl_relaxed(&src_reg->key_1_l);
....@@ -361,14 +364,17 @@
361364 case CRYP_KEY_SIZE_256:
362365 writel_relaxed(ctx->key_4_l, &reg->key_4_l);
363366 writel_relaxed(ctx->key_4_r, &reg->key_4_r);
367
+ fallthrough;
364368
365369 case CRYP_KEY_SIZE_192:
366370 writel_relaxed(ctx->key_3_l, &reg->key_3_l);
367371 writel_relaxed(ctx->key_3_r, &reg->key_3_r);
372
+ fallthrough;
368373
369374 case CRYP_KEY_SIZE_128:
370375 writel_relaxed(ctx->key_2_l, &reg->key_2_l);
371376 writel_relaxed(ctx->key_2_r, &reg->key_2_r);
377
+ fallthrough;
372378
373379 default:
374380 writel_relaxed(ctx->key_1_l, &reg->key_1_l);