crypto: tegra-se: Remove NOP after context save
venkatajagadish [Wed, 21 Nov 2012 10:40:02 +0000 (15:40 +0530)]
Remove NOP command after lp0 context save fot t148.

Bug 1002132

Change-Id: I2af181b02ff3ba64a60f2ad325fefee49e69c023
Signed-off-by: venkatajagadish <vjagadish@nvidia.com>
Reviewed-on: http://git-master/r/165612
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

drivers/crypto/tegra-se.c

index 93ab2c0..e6dd35e 100644 (file)
@@ -41,6 +41,7 @@
 #include <crypto/internal/hash.h>
 #include <crypto/sha.h>
 #include <linux/pm_runtime.h>
+#include <mach/hardware.h>
 
 #include "tegra-se.h"
 
@@ -2963,7 +2964,8 @@ static int tegra_se_save_SRK(struct tegra_se_dev *se_dev)
                return ret;
        }
 
-       if (se_dev->chipdata->drbg_supported) {
+       if ((tegra_get_chipid() == TEGRA_CHIPID_TEGRA11) &&
+                               se_dev->chipdata->drbg_supported) {
                /* clear any pending interrupts */
                val = se_readl(se_dev, SE_INT_STATUS_REG_OFFSET);
                se_writel(se_dev, val, SE_INT_STATUS_REG_OFFSET);