]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] geode: relax in busy loop and care about return value
authorSebastian Siewior <sebastian@breakpoint.cc>
Sun, 21 Oct 2007 08:18:12 +0000 (16:18 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:05 +0000 (08:16 +1100)
commitf51dab67262f8b3abf09177c7b813a7f4d6ccf9a
tree9823633e791570d01a6711d69f0d8a6167b1c629
parentc531e0364dc8a0451da26fd92374f93411765837
[CRYPTO] geode: relax in busy loop and care about return value

The code waits in a busy loop until the hardware finishes the encryption
or decryption process. This wants a cpu_relax() :)
The busy loop finishes either if the encryption is done or if the counter
is zero. If the latter is true than the hardware failed. Since this
should not happen, leave sith a BUG().

Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/geode-aes.c