]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: zynq: Drop use of slcr_unlock in zynq_slcr_system_restart
authorJosh Cartwright <joshc@ni.com>
Thu, 19 Mar 2015 13:33:53 +0000 (08:33 -0500)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 18 May 2015 12:46:37 +0000 (14:46 +0200)
The SLCR is unconditionally unlocked early on boot in zynq_slcr_init()
and not ever re-locked. As such, it is not necessary to explicitly unlock in
the restart codepath.

Signed-off-by: Josh Cartwright <joshc@ni.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mach-zynq/slcr.c

index 94a17be98822b91c0c5e39cbeae9a8d856ac9695..26320ebf349349a06c8257aa7ce87e7c7d5c46c9 100644 (file)
@@ -107,13 +107,6 @@ int zynq_slcr_system_restart(struct notifier_block *nb,
 {
        u32 reboot;
 
-       /*
-        * Unlock the SLCR then reset the system.
-        * Note that this seems to require raw i/o
-        * functions or there's a lockup?
-        */
-       zynq_slcr_unlock();
-
        /*
         * Clear 0x0F000000 bits of reboot status register to workaround
         * the FSBL not loading the bitstream after soft-reboot