From 61e148c8a8370d87bed680fb015f94dc1c9833dd Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Tue, 3 May 2016 01:33:06 +0100 Subject: PSCI: remove Allwinner debug messages Spamming the (shared) console from firmware with debug messages on (PSCI) service calls is really a bad idea, so just remove those to keep the firmware silent. Signed-off-by: Andre Przywara --- plat/sun50iw1p1/sunxi_cpu_ops.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/plat/sun50iw1p1/sunxi_cpu_ops.c b/plat/sun50iw1p1/sunxi_cpu_ops.c index 04978b1..6874232 100644 --- a/plat/sun50iw1p1/sunxi_cpu_ops.c +++ b/plat/sun50iw1p1/sunxi_cpu_ops.c @@ -91,10 +91,8 @@ int sun50i_power_switch_set(unsigned int cluster, unsigned int cpu, bool enable) { if (enable) { - if (0x00 == readl(sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu))) { - NOTICE("%s: power switch enable already\n", __func__); + if (0x00 == readl(sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu))) return 0; - } /* de-active cpu power clamp */ writel(0xFE, sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu)); @@ -114,10 +112,8 @@ while (0x00 != readl(sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu))); } else { - if (0xFF == readl(sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu))) { - NOTICE("%s: power switch disable already\n", __func__); + if (0xFF == readl(sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu))) return 0; - } writel(0xFF, sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu)); udelay(30); @@ -173,7 +169,6 @@ writel(value, sun50i_cpucfg_base + SUNXI_DBG_REG0); udelay(10); bakery_lock_get(&plat_console_lock); - INFO("sun50i power-up cluster-%d cpu-%d ok\n", cluster, cpu); bakery_lock_release(&plat_console_lock); } @@ -202,7 +197,6 @@ void sun50i_cpu_power_down(unsigned int cluster, unsigned int cpu) /* step10: Remove power from th e PDCPU power domain */ sun50i_power_switch_set(cluster, cpu, 0); bakery_lock_get(&plat_console_lock); - INFO("sun50i power-down cluster-%d cpu-%d ok.\n", cluster, cpu); bakery_lock_release(&plat_console_lock); } -- cgit v1.2.3