diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2011-01-11 14:03:54 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:36:54 -0800 |
commit | 53b76cce823d019907d180fc1a9a957983cdb2fc (patch) | |
tree | 5de685d9c0a2ce60d53ab65fb14556879680a275 /drivers/crypto | |
parent | ebcb84d7c232d62a7f9c58022dabb93cd1cec7dd (diff) |
crypto: tegra-aes: call INIT_COMPLETION before setting the transfer
Change-Id: I368a9bf8aa1c311532e54d18a813b556576b8da1
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/tegra-aes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/tegra-aes.c b/drivers/crypto/tegra-aes.c index ef17074b587a..9aed3e8ee0ff 100644 --- a/drivers/crypto/tegra-aes.c +++ b/drivers/crypto/tegra-aes.c @@ -309,6 +309,7 @@ static int aes_start_crypt(struct tegra_aes_dev *dd, u32 in_addr, u32 out_addr, aes_writel(dd, value, SECURE_INPUT_SELECT); aes_writel(dd, out_addr, SECURE_DEST_ADDR); + INIT_COMPLETION(dd->op_complete); for (i = 0; i < qlen - 1; i++) { do { @@ -320,7 +321,6 @@ static int aes_start_crypt(struct tegra_aes_dev *dd, u32 in_addr, u32 out_addr, aes_writel(dd, cmdq[i], ICMDQUE_WR); } - INIT_COMPLETION(dd->op_complete); ret = wait_for_completion_timeout(&dd->op_complete, msecs_to_jiffies(150)); if (ret == 0) { dev_err(dd->dev, "timed out (0x%x)\n", |