Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: atmel - Add capability case for the 0x600 SHA and AES IP versions

In order for the driver to be made aware of the capabilities of the SHA
and AES IP versions 0x600 , such as those present on the SAM9X60 SoC's,
add a corresponding switch case to the capability method of the respective
drivers. Without this, besides the capabilities not being correctly set,
the self tests may hang since the driver is endlessly waiting for a
completion to be set by a never occurring DMA interrupt handler.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Sergiu Moga and committed by
Herbert Xu
4838c519 750426d6

+2
+1
drivers/crypto/atmel-aes.c
··· 2510 2510 /* keep only major version number */ 2511 2511 switch (dd->hw_version & 0xff0) { 2512 2512 case 0x700: 2513 + case 0x600: 2513 2514 case 0x500: 2514 2515 dd->caps.has_dualbuff = 1; 2515 2516 dd->caps.has_cfb64 = 1;
+1
drivers/crypto/atmel-sha.c
··· 2509 2509 /* keep only major version number */ 2510 2510 switch (dd->hw_version & 0xff0) { 2511 2511 case 0x700: 2512 + case 0x600: 2512 2513 case 0x510: 2513 2514 dd->caps.has_dma = 1; 2514 2515 dd->caps.has_dualbuff = 1;