summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/geode-aes.c
diff options
context:
space:
mode:
authorSebastian Siewior2007-11-10 12:37:49 +0100
committerHerbert Xu2007-11-11 12:03:48 +0100
commit2e21630ddc3fb717dc645356b75771c6a52dc627 (patch)
tree4dbe3ba365751d6321dcf4eb52089d6388126da1 /drivers/crypto/geode-aes.c
parentACPI: add documentation for deprecated /proc/acpi/battery in ACPI_PROCFS (diff)
downloadkernel-qcow2-linux-2e21630ddc3fb717dc645356b75771c6a52dc627.tar.gz
kernel-qcow2-linux-2e21630ddc3fb717dc645356b75771c6a52dc627.tar.xz
kernel-qcow2-linux-2e21630ddc3fb717dc645356b75771c6a52dc627.zip
[CRYPTO] geode: Fix not inplace encryption
Currently the Geode AES module fails to encrypt or decrypt if the coherent bits are not set what is currently the case if the encryption does not occur inplace. However, the encryption works on my Geode machine _only_ if the coherent bits are always set. Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc> Acked-by: Jordan Crouse <jordan.crouse@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/geode-aes.c')
-rw-r--r--drivers/crypto/geode-aes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
index f9a34abbf4fa..711e246e1ef0 100644
--- a/drivers/crypto/geode-aes.c
+++ b/drivers/crypto/geode-aes.c
@@ -110,8 +110,7 @@ geode_aes_crypt(struct geode_aes_op *op)
* we don't need to worry
*/
- if (op->src == op->dst)
- flags |= (AES_CTRL_DCA | AES_CTRL_SCA);
+ flags |= (AES_CTRL_DCA | AES_CTRL_SCA);
if (op->dir == AES_DIR_ENCRYPT)
flags |= AES_CTRL_ENCRYPT;