summaryrefslogtreecommitdiff
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-01-22 12:26:43 -0600
commitea54accc3f71b4a761d9cfd6d041e2ff1dda3fa1 (patch)
treeab23d874bd590c963afe50720bc0036aaaf8f2b5
parentc8953ff1a65b18bc434fc93798d7cae93e791542 (diff)
downloadmeta-multitech-ea54accc3f71b4a761d9cfd6d041e2ff1dda3fa1.tar.gz
meta-multitech-ea54accc3f71b4a761d9cfd6d041e2ff1dda3fa1.tar.bz2
meta-multitech-ea54accc3f71b4a761d9cfd6d041e2ff1dda3fa1.zip
Change watchdog timer from 2 to 10 seconds to match old 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 \
"