0fb3847fdac3548adc5b61fa19ca202431505565
[openwrt/staging/wigyori.git] / target / linux / layerscape / patches-5.4 / 804-crypto-0024-MLK-19449-crypto-caam-Change-structure-type-represen.patch
1 From 18c56f8bced33c4d3d18dd10d2648def4291e6ea Mon Sep 17 00:00:00 2001
2 From: Franck LENORMAND <franck.lenormand@nxp.com>
3 Date: Tue, 5 Mar 2019 14:20:34 +0100
4 Subject: [PATCH] MLK-19449 crypto: caam - Change structure type representing
5 DECO MID
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 The structure partid is not suitable to represent the DECO MID register.
11
12 This patch replace partid by masterid which is more appropriate.
13
14 Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
15 Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
16 (cherry picked from commit 2d8dab735757dae8efb35bb0371970a7d27e98be)
17 Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
18 ---
19 drivers/crypto/caam/regs.h | 8 +-------
20 1 file changed, 1 insertion(+), 7 deletions(-)
21
22 --- a/drivers/crypto/caam/regs.h
23 +++ b/drivers/crypto/caam/regs.h
24 @@ -518,12 +518,6 @@ struct masterid {
25 u32 liodn_ls; /* LIODN for non-sequence and seq access */
26 };
27
28 -/* Partition ID for DMA configuration */
29 -struct partid {
30 - u32 rsvd1;
31 - u32 pidr; /* partition ID, DECO */
32 -};
33 -
34 /* RNGB test mode (replicated twice in some configurations) */
35 /* Padded out to 0x100 */
36 struct rngtst {
37 @@ -637,7 +631,7 @@ struct caam_ctrl {
38 u32 deco_rsr; /* DECORSR - Deco Request Source */
39 u32 rsvd11;
40 u32 deco_rq; /* DECORR - DECO Request */
41 - struct partid deco_mid[5]; /* DECOxLIODNR - 1 per DECO */
42 + struct masterid deco_mid[5]; /* DECOxLIODNR - 1 per DECO */
43 u32 rsvd5[22];
44
45 /* DECO Availability/Reset Section 120-3ff */