SBC_builder/patch/kernel/sunxi-6.14/patches.armbian/drivers-devfreq-sun8i-a33-mbus-disable-autorefresh.patch
2025-06-01 01:05:27 +02:00

28 lines
986 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Gunjan Gupta <viraniac@gmail.com>
Date: Tue, 5 Sep 2023 11:16:07 +0000
Subject: drivers: devfreq: sun8i-a33-mbus: disable autorefresh
---
drivers/devfreq/sun8i-a33-mbus.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/devfreq/sun8i-a33-mbus.c b/drivers/devfreq/sun8i-a33-mbus.c
index 111111111111..222222222222 100644
--- a/drivers/devfreq/sun8i-a33-mbus.c
+++ b/drivers/devfreq/sun8i-a33-mbus.c
@@ -202,8 +202,8 @@ static int sun8i_a33_mbus_set_dram_freq(struct sun8i_a33_mbus *priv,
writel_relaxed(vtfcr, priv->reg_dram + DRAM_VTFCR);
/* Enable automatic self-refresh at the lowest frequency only. */
- if (freq == priv->freq_table[0])
- pwrctl |= DRAM_PWRCTL_SELFREF_EN;
+ // if (freq == priv->freq_table[0])
+ // pwrctl |= DRAM_PWRCTL_SELFREF_EN;
writel_relaxed(pwrctl, priv->reg_dram + DRAM_PWRCTL);
sun8i_a33_mbus_restart_pmu_counters(priv);
--
Armbian