Skip to content

Commit

Permalink
ARM: tegra: Initialize r0 register for firmware wake-up
Browse files Browse the repository at this point in the history
Downstream kernel of ASUS TF300T sets r0 to #3. Unfortunately there is no
explanation in downstream code whether this is really needed. Some of T30
downstream kernels have and explicit comment that all arguments are
ignored by firmware. Let's take the safe side and replicate behaviour of
the TF300T downstream kernel.

Tested-by: Peter Geis <[email protected]>
Signed-off-by: Dmitry Osipenko <[email protected]>
  • Loading branch information
digetx committed Mar 19, 2020
1 parent 8f9f49f commit 70372c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/arm/mach-tegra/reset-handler.S
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ ENTRY(tegra_resume_trusted_foundations)
reteq lr

.arch_extension sec
/* First call after suspend wakes firmware. No arguments required. */
/*
* First call after suspend wakes firmware. No arguments required
* for some firmware versions. Downstream kernel of ASUS TF300T uses
* r0=3 for the wake-up notification.
*/
mov r0, #3
smc #0

b cpu_resume
Expand Down

0 comments on commit 70372c8

Please sign in to comment.