aboutsummaryrefslogtreecommitdiff
path: root/drivers/crypto/omap-aes.c
AgeCommit message (Collapse)AuthorFilesLines
2010-12-02crypto: omap-aes - initialize aes module once per requestDmitry Kasatkin1-26/+28
AES module was initialized for every DMA transaction. That is redundant. Now it is initialized once per request. Signed-off-by: Dmitry Kasatkin <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2010-12-02crypto: omap-aes - unnecessary code removedDmitry Kasatkin1-53/+17
Key and IV should always be set before AES operation. So no need to check if it has changed or not. Signed-off-by: Dmitry Kasatkin <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2010-12-02crypto: omap-aes - error handling implementation improvedDmitry Kasatkin1-41/+93
Previous version had not error handling. Request could remain uncompleted. Also in the case of DMA error, FLAGS_INIT is unset and accelerator will be initialized again. Buffer size allignment is checked. Signed-off-by: Dmitry Kasatkin <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2010-12-02crypto: omap-aes - redundant locking is removedDmitry Kasatkin1-38/+32
Submitting request involved double locking for enqueuing and dequeuing. Now it is done under the same lock. FLAGS_BUSY is now handled under the same lock. Signed-off-by: Dmitry Kasatkin <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2010-12-02crypto: omap-aes - DMA initialization fixes for OMAP off modeDmitry Kasatkin1-12/+12
DMA parameters for constant data were initialized during driver probe(). It seems that those settings sometimes are lost when devices goes to off mode. This patch makes DMA initialization just before use. It solves off mode problems. Signed-off-by: Dmitry Kasatkin <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2010-09-03crypto: omap-aes - OMAP2/3 AES hw accelerator driverDmitry Kasatkin1-0/+948
Signed-off-by: Dmitry Kasatkin <[email protected]> Signed-off-by: Herbert Xu <[email protected]>