30 Aug, 2019

1 commit


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

    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

    Ard Biesheuvel
     
  • 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

    Ard Biesheuvel