rk30: pm: enable fiq later
author黄涛 <huangtao@rock-chips.com>
Mon, 2 Apr 2012 12:05:05 +0000 (20:05 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 2 Apr 2012 12:05:05 +0000 (20:05 +0800)
arch/arm/mach-rk30/pm.c

index 80c0cf81a12f2f610ce1285a2d04939cf8684afc..c284eaf6d978b5e0e13033ad4f1e7a52e2e56b63 100755 (executable)
@@ -396,6 +396,7 @@ static int rk30_pm_enter(suspend_state_t state)
        rk30_pm_set_power_domain(pmu_pwrdn_st, false);
 
        sram_printch('1');
+       local_fiq_disable();
 
        for (i = 0; i < CRU_CLKGATES_CON_CNT; i++) {
                clkgt_regs[i] = cru_readl(CRU_CLKGATES_CON(i));
@@ -482,8 +483,6 @@ static int rk30_pm_enter(suspend_state_t state)
 
        board_gpio_suspend();
 
-       local_fiq_disable();
-
        flush_tlb_all();
        interface_ctr_reg_pread();
 
@@ -491,8 +490,6 @@ static int rk30_pm_enter(suspend_state_t state)
        rk30_suspend();
        sram_printch('4');
 
-       local_fiq_enable();
-
        board_gpio_resume();
 
        sram_printch('3');
@@ -522,6 +519,7 @@ static int rk30_pm_enter(suspend_state_t state)
                cru_writel(clkgt_regs[i] | 0xffff0000, CRU_CLKGATES_CON(i));
        }
 
+       local_fiq_enable();
        sram_printch('1');
 
        rk30_pm_set_power_domain(pmu_pwrdn_st, true);