crypto: marvell - Fix wrong type check in dma functions
authorRomain Perier <romain.perier@free-electrons.com>
Tue, 21 Jun 2016 08:08:33 +0000 (10:08 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Jun 2016 10:14:01 +0000 (18:14 +0800)
commitb99acf79a17bf402ea5759ad9d44eba3ed837a59
tree45b3012cb1898eb4ea227ac112b0048a2a8ea5fe
parentf62830886f6b8cb2f1c55e23cb5eab51c4b9ef2c
crypto: marvell - Fix wrong type check in dma functions

So far, the way that the type of a TDMA operation was checked was wrong.
We have to use the type mask in order to get the right part of the flag
containing the type of the operation.

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/tdma.c