Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
5ae4dab2
Commit
5ae4dab2
authored
Aug 17, 2017
by
danh-arm
Committed by
GitHub
Aug 17, 2017
Browse files
Merge pull request #1051 from Kevin-WangTao/fix_suspend_issue
Hikey960: fix PSCI suspend stuck issue
parents
e8082422
4af7fcb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/hisilicon/hikey960/hikey960_pm.c
View file @
5ae4dab2
...
...
@@ -250,6 +250,7 @@ static void
hikey960_pwr_domain_suspend_finish
(
const
psci_power_state_t
*
target_state
)
{
unsigned
long
mpidr
=
read_mpidr_el1
();
unsigned
int
core
=
mpidr
&
MPIDR_CPU_MASK
;
unsigned
int
cluster
=
(
mpidr
&
MPIDR_CLUSTER_MASK
)
>>
MPIDR_AFFINITY_BITS
;
...
...
@@ -257,6 +258,10 @@ hikey960_pwr_domain_suspend_finish(const psci_power_state_t *target_state)
if
(
CORE_PWR_STATE
(
target_state
)
!=
PLAT_MAX_OFF_STATE
)
return
;
hisi_cpuidle_lock
(
cluster
,
core
);
hisi_clear_cpuidle_flag
(
cluster
,
core
);
hisi_cpuidle_unlock
(
cluster
,
core
);
if
(
hisi_test_ap_suspend_flag
(
cluster
))
{
hikey960_sr_dma_reinit
();
gicv2_cpuif_enable
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment