aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-5.10/322-mt7621-fix-cpu-clk-add-clkdev.patch
diff options
context:
space:
mode:
authorRui Salvaterra <rsalvaterra@gmail.com>2021-03-30 23:59:49 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-03-31 00:58:49 +0100
commit9c3b2d7ff755216a93d0ffa7d0375007cb7d3294 (patch)
treea46a3586a44b0508118a6d1b99a64b89afea3af4 /target/linux/ramips/patches-5.10/322-mt7621-fix-cpu-clk-add-clkdev.patch
parent4b2e4518acaf1bed9c06fbd44a7f175e7fdb0a29 (diff)
downloadupstream-9c3b2d7ff755216a93d0ffa7d0375007cb7d3294.tar.gz
upstream-9c3b2d7ff755216a93d0ffa7d0375007cb7d3294.tar.bz2
upstream-9c3b2d7ff755216a93d0ffa7d0375007cb7d3294.zip
ramips/mt7621: drop the timer recalibration patch
We've been carrying this patch for many years [1], in order to fix a timer calibration issue on MT7621. Turns out, after retesting with a recent kernel (Linux 5.10), the system works perfectly fine without it (no rcu_sched stalls or inconsistent BogoMIPS values across CPUs). Manually refreshed: 322-mt7621-fix-cpu-clk-add-clkdev.patch 323-mt7621-memory-detect.patch [1] https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=6f4a903533361a2906a4d94ac6f597cd9c6c47bc Suggested-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com> Tested-by: Donald Hoskins <grommish@gmail.com> Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Diffstat (limited to 'target/linux/ramips/patches-5.10/322-mt7621-fix-cpu-clk-add-clkdev.patch')
-rw-r--r--target/linux/ramips/patches-5.10/322-mt7621-fix-cpu-clk-add-clkdev.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/ramips/patches-5.10/322-mt7621-fix-cpu-clk-add-clkdev.patch b/target/linux/ramips/patches-5.10/322-mt7621-fix-cpu-clk-add-clkdev.patch
index 723c628790..be5fee54b2 100644
--- a/target/linux/ramips/patches-5.10/322-mt7621-fix-cpu-clk-add-clkdev.patch
+++ b/target/linux/ramips/patches-5.10/322-mt7621-fix-cpu-clk-add-clkdev.patch
@@ -36,10 +36,10 @@
#define MT7621_DDR2_SIZE_MAX 256
--- a/arch/mips/ralink/mt7621.c
+++ b/arch/mips/ralink/mt7621.c
-@@ -10,6 +10,10 @@
+@@ -9,6 +9,10 @@
+ #include <linux/init.h>
#include <linux/slab.h>
#include <linux/sys_soc.h>
- #include <linux/jiffies.h>
+#include <linux/clk.h>
+#include <linux/clkdev.h>
+#include <linux/clk-provider.h>
@@ -47,15 +47,15 @@
#include <asm/mipsregs.h>
#include <asm/smp-ops.h>
-@@ -18,6 +22,7 @@
+@@ -16,6 +20,7 @@
+ #include <asm/mach-ralink/ralink_regs.h>
#include <asm/mach-ralink/mt7621.h>
#include <asm/mips-boards/launch.h>
- #include <asm/delay.h>
+#include <asm/time.h>
#include <pinmux.h>
-@@ -108,11 +113,89 @@ static struct rt2880_pmx_group mt7621_pi
+@@ -106,11 +111,89 @@ static struct rt2880_pmx_group mt7621_pi
{ 0 }
};