Skip to content

Commit 24c7bf0

Browse files
xypronherbertx
authored andcommitted
crypto: caam - fix typos
Fix CAAM related typos. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Horia Geantă <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 376bd28 commit 24c7bf0

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

drivers/crypto/caam/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ config CRYPTO_DEV_FSL_CAAM_RNG_API
147147
select HW_RANDOM
148148
help
149149
Selecting this will register the SEC4 hardware rng to
150-
the hw_random API for suppying the kernel entropy pool.
150+
the hw_random API for supplying the kernel entropy pool.
151151

152152
endif # CRYPTO_DEV_FSL_CAAM_JR
153153

drivers/crypto/caam/ctrl.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static void build_instantiation_desc(u32 *desc, int handle, int do_sk)
5454

5555
/*
5656
* load 1 to clear written reg:
57-
* resets the done interrrupt and returns the RNG to idle.
57+
* resets the done interrupt and returns the RNG to idle.
5858
*/
5959
append_load_imm_u32(desc, 1, LDST_SRCDST_WORD_CLRW);
6060

@@ -156,7 +156,7 @@ static inline int run_descriptor_deco0(struct device *ctrldev, u32 *desc,
156156
DESC_DER_DECO_STAT_SHIFT;
157157

158158
/*
159-
* If an error occured in the descriptor, then
159+
* If an error occurred in the descriptor, then
160160
* the DECO status field will be set to 0x0D
161161
*/
162162
if (deco_state == DECO_STAT_HOST_ERR)
@@ -264,7 +264,7 @@ static void devm_deinstantiate_rng(void *data)
264264
* - -ENODEV if DECO0 couldn't be acquired
265265
* - -EAGAIN if an error occurred when executing the descriptor
266266
* f.i. there was a RNG hardware error due to not "good enough"
267-
* entropy being aquired.
267+
* entropy being acquired.
268268
*/
269269
static int instantiate_rng(struct device *ctrldev, int state_handle_mask,
270270
int gen_sk)
@@ -733,8 +733,8 @@ static int caam_probe(struct platform_device *pdev)
733733
handle_imx6_err005766(&ctrl->mcr);
734734

735735
/*
736-
* Read the Compile Time paramters and SCFGR to determine
737-
* if Virtualization is enabled for this platform
736+
* Read the Compile Time parameters and SCFGR to determine
737+
* if virtualization is enabled for this platform
738738
*/
739739
scfgr = rd_reg32(&ctrl->scfgr);
740740

@@ -863,9 +863,9 @@ static int caam_probe(struct platform_device *pdev)
863863
}
864864
/*
865865
* if instantiate_rng(...) fails, the loop will rerun
866-
* and the kick_trng(...) function will modfiy the
866+
* and the kick_trng(...) function will modify the
867867
* upper and lower limits of the entropy sampling
868-
* interval, leading to a sucessful initialization of
868+
* interval, leading to a successful initialization of
869869
* the RNG.
870870
*/
871871
ret = instantiate_rng(dev, inst_handles,
@@ -882,8 +882,8 @@ static int caam_probe(struct platform_device *pdev)
882882
return ret;
883883
}
884884
/*
885-
* Set handles init'ed by this module as the complement of the
886-
* already initialized ones
885+
* Set handles initialized by this module as the complement of
886+
* the already initialized ones
887887
*/
888888
ctrlpriv->rng4_sh_init = ~ctrlpriv->rng4_sh_init & RDSTA_MASK;
889889

drivers/crypto/caam/desc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
#define SEC4_SG_LEN_EXT 0x80000000 /* Entry points to table */
21-
#define SEC4_SG_LEN_FIN 0x40000000 /* Last ent in table */
21+
#define SEC4_SG_LEN_FIN 0x40000000 /* Last entry in table */
2222
#define SEC4_SG_BPID_MASK 0x000000ff
2323
#define SEC4_SG_BPID_SHIFT 16
2424
#define SEC4_SG_LEN_MASK 0x3fffffff /* Excludes EXT and FINAL */
@@ -113,7 +113,7 @@
113113
*/
114114
#define HDR_REVERSE 0x00000800
115115

116-
/* Propogate DNR property to SharedDesc */
116+
/* Propagate DNR property to SharedDesc */
117117
#define HDR_PROP_DNR 0x00000800
118118

119119
/* JobDesc/SharedDesc share property */

drivers/crypto/caam/pdb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ struct srtp_decap_pdb {
453453
#define DSA_PDB_N_MASK 0x7f
454454

455455
struct dsa_sign_pdb {
456-
u32 sgf_ln; /* Use DSA_PDB_ defintions per above */
456+
u32 sgf_ln; /* Use DSA_PDB_ definitions per above */
457457
u8 *q;
458458
u8 *r;
459459
u8 *g; /* or Gx,y */

0 commit comments

Comments
 (0)