crypto: tegra-se: Enable interrupts after clock enable
authorVictor(Weiguo) Pan <wpan@nvidia.com>
Mon, 2 Jul 2012 22:53:08 +0000 (15:53 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 12 Jul 2012 04:42:30 +0000 (09:42 +0530)
commite8d4d0aa84b0fd346208d5348b8dbc26e478fcd9
tree2f5821237da4b58fd2a1a9b8d0c49fa335938ae9
parentc7ef99c55a19197cea16dffe99ed0a7e39972bf3
crypto: tegra-se: Enable interrupts after clock enable

Because SE interrupts could be enabled in bootloader, if it's not
cleared before jumping into kernel, it continues to assert the
interrupt line to interrupt controller. When SE interrupts is
enabled in kernel, to access SE registers in IST without clock
enabled hung the CPU. To fix this issue, interrupt enabling is
moved after clock is enabled.

bug 1010334

Change-Id: I1b909efce2c9d92c3112039fc217f7c1360f9bbb
Reviewed-on: http://git-master/r/113073
(cherry picked from commit b06e6662f738ad01a3b2b6803db654abaa03385e)

Signed-off-by: Victor(Weiguo) Pan <wpan@nvidia.com>
Change-Id: Ide4b0295c781e0bba7aa071616e3e6160e44ee76
Reviewed-on: http://git-master/r/114064
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/crypto/tegra-se.c