30 Aug, 2019
1 commit
-
drivers/crypto/atmel-i2c.h:68:3: warning:
error_list defined but not used [-Wunused-const-variable=]error_list is only used in atmel-i2c.c,
so just move the definition over there.Reported-by: Hulk Robot
Signed-off-by: YueHaibing
Signed-off-by: Herbert Xu
06 Jun, 2019
1 commit
-
The param2 member in atmel_i2c_cmd is supposed to be little-endian
but was marked as u16. This patch changes it to a __le16 which
reveals a missing endian swap in atmel_i2c_init_read_cmd.Another missing little-endian marking is also added in
atmel_i2c_checksum.Fixes: 11105693fa05 ("crypto: atmel-ecc - introduce Microchip...")
Reported-by: kbuild test robot
Signed-off-by: Herbert Xu
30 May, 2019
2 commits
-
The Linaro/96boards Secure96 mezzanine contains (among other things)
an Atmel SHA204A symmetric crypto processor. This chip implements a
number of different functionalities, but one that is highly useful
for many different 96boards platforms is the random number generator.So let's implement a driver for the SHA204A, and for the time being,
implement support for the random number generator only.Reviewed-by: Linus Walleij
Signed-off-by: Ard Biesheuvel
Signed-off-by: Herbert Xu -
In preparation of adding support for the random number generator in
Atmel atsha204a devices, refactor the existing atmel-ecc driver (which
drives hardware that is closely related) so we can share the basic
I2C and command queuing routines.Reviewed-by: Linus Walleij
Signed-off-by: Ard Biesheuvel
Signed-off-by: Herbert Xu