aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-06-18 11:57:07 +0000
committerJohn Crispin <blogic@openwrt.org>2015-06-18 11:57:07 +0000
commitd7c3fea9c16e70fe47f8fbe6b59383e5d0f08fe7 (patch)
tree1f966fbfc24139de8cd31a6c8459590591f6b533 /target/linux
parentf44efabbf59250a8825f9709409a0116513a10fd (diff)
downloadmaster-187ad058-d7c3fea9c16e70fe47f8fbe6b59383e5d0f08fe7.tar.gz
master-187ad058-d7c3fea9c16e70fe47f8fbe6b59383e5d0f08fe7.tar.bz2
master-187ad058-d7c3fea9c16e70fe47f8fbe6b59383e5d0f08fe7.zip
ramips: fix a bug in the cevt code on mt7620
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46038 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/patches-3.18/999-cevt.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.18/999-cevt.patch b/target/linux/ramips/patches-3.18/999-cevt.patch
new file mode 100644
index 0000000000..dbab46791e
--- /dev/null
+++ b/target/linux/ramips/patches-3.18/999-cevt.patch
@@ -0,0 +1,14 @@
+Index: linux-3.18.16/arch/mips/ralink/cevt-rt3352.c
+===================================================================
+--- linux-3.18.16.orig/arch/mips/ralink/cevt-rt3352.c 2015-06-14 09:10:18.544132719 +0200
++++ linux-3.18.16/arch/mips/ralink/cevt-rt3352.c 2015-06-18 13:30:04.830117077 +0200
+@@ -53,8 +53,7 @@
+
+ sdev = container_of(evt, struct systick_device, dev);
+ count = ioread32(sdev->membase + SYSTICK_COUNT);
+- count = (count + delta) % SYSTICK_FREQ;
+- iowrite32(count, sdev->membase + SYSTICK_COMPARE);
++ iowrite32(count + delta, sdev->membase + SYSTICK_COMPARE);
+
+ return 0;
+ }