Skip to content

Commit 38743e4

Browse files
digetxthierryreding
authored andcommitted
ARM: tegra: Do not fully reinitialize L2 on resume
ASUS TF300T device may not work properly if firmware is asked to fully re-initialize L2 cache after resume from LP2 suspend. The downstream kernel of TF300T uses different opcode to enable cache after resuming from LP2, this opcode also works fine on Nexus 7 and Ouya devices. Supposedly, this may be needed by an older firmware versions. Reported-by: Michał Mirosław <[email protected]> Tested-by: Michał Mirosław <[email protected]> Tested-by: Jasper Korten <[email protected]> Tested-by: David Heidelberg <[email protected]> Tested-by: Peter Geis <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 36dc3b1 commit 38743e4

File tree

1 file changed

+4
-0
lines changed
  • arch/arm/mach-tegra

1 file changed

+4
-0
lines changed

arch/arm/mach-tegra/pm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ int tegra_pm_enter_lp2(void)
216216
restore_cpu_complex();
217217
cpu_cluster_pm_exit();
218218

219+
call_firmware_op(prepare_idle, TF_PM_MODE_NONE);
220+
219221
return err;
220222
}
221223

@@ -391,6 +393,8 @@ static int tegra_suspend_enter(suspend_state_t state)
391393

392394
local_fiq_enable();
393395

396+
call_firmware_op(prepare_idle, TF_PM_MODE_NONE);
397+
394398
return 0;
395399
}
396400

0 commit comments

Comments
 (0)