crypto: tegra-aes: do not reset bsev/vde per operation
Varun Wadekar [Fri, 7 Jan 2011 13:02:00 +0000 (18:02 +0530)]
avp does not use the crypto engine inside the vde block,
so it is ok if we do not reset the entire block before
any crypto operation. this would save more than 100us per crypto
operation.

Change-Id: I4e6f4940c5b6e95498b6f7a62498fbf956e25254
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

drivers/crypto/tegra-aes.c

index d94046a..ef17074 100644 (file)
@@ -222,11 +222,6 @@ static int aes_hw_init(struct tegra_aes_dev *dd)
                return ret;
        }
 
-       tegra_periph_reset_assert(dd->iclk);
-       udelay(50);
-       tegra_periph_reset_deassert(dd->iclk);
-       udelay(50);
-
        ret = clk_enable(dd->iclk);
        if (ret < 0) {
                dev_err(dd->dev, "%s: iclock enable fail(%d)\n", __func__, ret);