summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-bsc913x/bsc9132qds/0004-fix-wrong-WDTP_MASK-in-booke_wdt_c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-bsc913x/bsc9132qds/0004-fix-wrong-WDTP_MASK-in-booke_wdt_c.patch')
-rw-r--r--recipes-kernel/linux/linux-bsc913x/bsc9132qds/0004-fix-wrong-WDTP_MASK-in-booke_wdt_c.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-bsc913x/bsc9132qds/0004-fix-wrong-WDTP_MASK-in-booke_wdt_c.patch b/recipes-kernel/linux/linux-bsc913x/bsc9132qds/0004-fix-wrong-WDTP_MASK-in-booke_wdt_c.patch
new file mode 100644
index 0000000..c9e2308
--- /dev/null
+++ b/recipes-kernel/linux/linux-bsc913x/bsc9132qds/0004-fix-wrong-WDTP_MASK-in-booke_wdt_c.patch
@@ -0,0 +1,26 @@
1From f94d0836740b00fb99861651ce261df94244a1d7 Mon Sep 17 00:00:00 2001
2From: Alex He <Alex.He@enea.com>
3Date: Wed, 22 Aug 2012 11:40:11 +0200
4Subject: [PATCH] fix wrong WDTP_MASK in booke_wdt.c in
5 linux-bsc9132qds-2.6.33
6
7---
8 drivers/watchdog/booke_wdt.c | 2 +-
9 1 files changed, 1 insertions(+), 1 deletions(-)
10
11diff --git a/drivers/watchdog/booke_wdt.c b/drivers/watchdog/booke_wdt.c
12index a01e298..77defbe 100644
13--- a/drivers/watchdog/booke_wdt.c
14+++ b/drivers/watchdog/booke_wdt.c
15@@ -44,7 +44,7 @@ u32 booke_wdt_period = WDT_PERIOD_DEFAULT;
16
17 #ifdef CONFIG_FSL_BOOKE
18 #define WDTP(x) ((((x)&0x3)<<30)|(((x)&0x3c)<<15))
19-#define WDTP_MASK (WDTP(0))
20+#define WDTP_MASK (WDTP(0x3f))
21 #else
22 #define WDTP(x) (TCR_WP(x))
23 #define WDTP_MASK (TCR_WP_MASK)
24--
251.7.5.4
26