summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSebastian Siewior <sebastian@breakpoint.cc>2007-11-10 19:37:49 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2007-11-26 09:42:30 -0800
commitca1b1e5c86d9dd07e3b9ec76e5f771fb2aebcab9 (patch)
treeff8c1ac43b138f3c3d6629f92ddf95c49fcf0566 /drivers
parent23a5e6a55c8653d79783a0ebda8083999fb97054 (diff)
downloadlwn-ca1b1e5c86d9dd07e3b9ec76e5f771fb2aebcab9.tar.gz
lwn-ca1b1e5c86d9dd07e3b9ec76e5f771fb2aebcab9.zip
geode: Fix not inplace encryption
patch 2e21630ddc3fb717dc645356b75771c6a52dc627 in mainline. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-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 6a86958b577f..fa4c9904346f 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;