summaryrefslogtreecommitdiff
path: root/recipes-kernel
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-01-22 12:26:43 -0600
committerJohn Klug <john.klug@multitech.com>2019-07-03 11:22:01 -0500
commit0000965edb8a75096e23ed02ba7ede6d31d48d93 (patch)
treeab23d874bd590c963afe50720bc0036aaaf8f2b5 /recipes-kernel
parent5cc6013ba29c43453cd562ac9d5f589ab770ec92 (diff)
downloadmeta-multitech-0000965edb8a75096e23ed02ba7ede6d31d48d93.tar.gz
meta-multitech-0000965edb8a75096e23ed02ba7ede6d31d48d93.tar.bz2
meta-multitech-0000965edb8a75096e23ed02ba7ede6d31d48d93.zip
Change watchdog timer from 2 to 10 seconds to match old kernel.
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-at91-4.9.87/linux-4.9-at91sam9_wdt-10second-timeout.patch12
-rw-r--r--recipes-kernel/linux/linux-at91_4.9.87.bb1
2 files changed, 13 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-at91-4.9.87/linux-4.9-at91sam9_wdt-10second-timeout.patch b/recipes-kernel/linux/linux-at91-4.9.87/linux-4.9-at91sam9_wdt-10second-timeout.patch
new file mode 100644
index 0000000..c9b6b05
--- /dev/null
+++ b/recipes-kernel/linux/linux-at91-4.9.87/linux-4.9-at91sam9_wdt-10second-timeout.patch
@@ -0,0 +1,12 @@
+diff -Naru linux-4.9.87.orig/drivers/watchdog/at91sam9_wdt.c linux-4.9.87/drivers/watchdog/at91sam9_wdt.c
+--- linux-4.9.87.orig/drivers/watchdog/at91sam9_wdt.c 2019-01-22 12:18:00.135296967 -0600
++++ linux-4.9.87/drivers/watchdog/at91sam9_wdt.c 2019-01-22 12:18:29.207296107 -0600
+@@ -63,7 +63,7 @@
+ #define WDT_COUNTER_MAX_SECS ticks_to_secs(WDT_COUNTER_MAX_TICKS)
+
+ /* Hardware timeout in seconds */
+-#define WDT_HW_TIMEOUT 2
++#define WDT_HW_TIMEOUT 10
+
+ /* Timer heartbeat (500ms) */
+ #define WDT_TIMEOUT (HZ/2)
diff --git a/recipes-kernel/linux/linux-at91_4.9.87.bb b/recipes-kernel/linux/linux-at91_4.9.87.bb
index a6bdc4f..2aaefca 100644
--- a/recipes-kernel/linux/linux-at91_4.9.87.bb
+++ b/recipes-kernel/linux/linux-at91_4.9.87.bb
@@ -37,6 +37,7 @@ SRC_URI[sha256sum] = "eaff5fdba506bef95ca57db1a53e19b6807bc9b090f97d3348b1712708
COMMON_PATCHES = " \
file://defconfig \
file://linux-4.9-pps-gpio.patch \
+ file://linux-4.9-at91sam9_wdt-10second-timeout.patch \
file://EXTRAVERSION.patch \
"