Skip to content

Commit

Permalink
tegra: Move lp2 firmware idle op further down suspend path
Browse files Browse the repository at this point in the history
Fixes lp2 idle crash on Ouya.
  • Loading branch information
Decatf committed Feb 16, 2019
1 parent 9d82bfb commit 3fee4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-tegra/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ bool tegra_set_cpu_in_lp2(void)

spin_unlock(&tegra_lp2_lock);

if (last_cpu)
call_firmware_op(prepare_idle, TF_PM_MODE_LP2);

return last_cpu;
}
Expand Down Expand Up @@ -201,6 +199,8 @@ void tegra_idle_lp2_last(void)
cpu_cluster_pm_enter();
suspend_cpu_complex();

call_firmware_op(prepare_idle, TF_PM_MODE_LP2);

/*
* L2 cache disabling using kernel API only allowed when all
* secondary CPU's are offline. Cache have to be disabled early
Expand Down

0 comments on commit 3fee4a5

Please sign in to comment.