Skip to content

Commit ba7f8c9

Browse files
committed
Merge tag 'sunxi-fixes-for-5.4-2' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into arm/fixes
One fix for the A83t powerdown, and one for the TBS A711 tablet wifi suspend * tag 'sunxi-fixes-for-5.4-2' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux: ARM: sunxi: Fix CPU powerdown on A83T ARM: dts: sun8i-a83t-tbs-a711: Fix WiFi resume from suspend Link: https://lore.kernel.org/r/3935640c-289c-40b2-b156-79787aed8c60.lettre@localhost Signed-off-by: Olof Johansson <[email protected]>
2 parents 70a7274 + e690053 commit ba7f8c9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@
192192
vqmmc-supply = <&reg_dldo1>;
193193
non-removable;
194194
wakeup-source;
195+
keep-power-in-suspend;
195196
status = "okay";
196197

197198
brcmf: wifi@1 {

arch/arm/mach-sunxi/mc_smp.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,14 +481,18 @@ static void sunxi_mc_smp_cpu_die(unsigned int l_cpu)
481481
static int sunxi_cpu_powerdown(unsigned int cpu, unsigned int cluster)
482482
{
483483
u32 reg;
484+
int gating_bit = cpu;
484485

485486
pr_debug("%s: cluster %u cpu %u\n", __func__, cluster, cpu);
486487
if (cpu >= SUNXI_CPUS_PER_CLUSTER || cluster >= SUNXI_NR_CLUSTERS)
487488
return -EINVAL;
488489

490+
if (is_a83t && cpu == 0)
491+
gating_bit = 4;
492+
489493
/* gate processor power */
490494
reg = readl(prcm_base + PRCM_PWROFF_GATING_REG(cluster));
491-
reg |= PRCM_PWROFF_GATING_REG_CORE(cpu);
495+
reg |= PRCM_PWROFF_GATING_REG_CORE(gating_bit);
492496
writel(reg, prcm_base + PRCM_PWROFF_GATING_REG(cluster));
493497
udelay(20);
494498

0 commit comments

Comments
 (0)