crypto: omap-aes - Switch to PIO mode during probe
authorJoel Fernandes <joelf@ti.com>
Sun, 18 Aug 2013 02:42:31 +0000 (21:42 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 21 Aug 2013 11:28:04 +0000 (21:28 +1000)
commit1801ad9483b796271a985ab71cfe26f7bbeae6dd
tree5af60871fbae39f17ef4f242ccf0c09c61c6d67a
parent98837abc86ebd26c1518c91cc5e2a9344837e6a8
crypto: omap-aes - Switch to PIO mode during probe

In cases where requesting for DMA channels fails for some reason, or channel
numbers are not provided in DT or platform data, we switch to PIO-only mode
also checking if platform provides IRQ numbers and interrupt register offsets
in DT and platform data. All dma-only paths are avoided in this mode.

Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes.c