From 765efbf10eea010c67b6f379bf1c7260bfeab3a6 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 18 Jun 2015 11:57:07 +0000 Subject: [PATCH] ramips: fix a bug in the cevt code on mt7620 Signed-off-by: John Crispin SVN-Revision: 46038 --- target/linux/ramips/patches-3.18/999-cevt.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 target/linux/ramips/patches-3.18/999-cevt.patch 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; + } -- 2.25.1