summaryrefslogtreecommitdiff
path: root/drivers/watchdog
AgeCommit message (Collapse)Author
2016-01-12watchdog: remove timeout setting in open callJeetesh Burman
timeout should not be set as part of open call. It should be set as part of Probe if watchdog enabled on probe, Otherwise timeout should be 0 since watchdog is not enabled. Bug 200160105 Change-Id: I2bc0f35436dafd01d17e3ea2ec5459fd0d75af5a Signed-off-by: Jeetesh Burman <jburman@nvidia.com> Reviewed-on: http://git-master/r/927429 Reviewed-by: Bibek Basu <bbasu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2015-06-08watchdog: use FIQ WDT for soft lockup stack dumpRenn Wu
Using Tegra WDT to trigger FIQ when system is in soft lockup. Bug 1581432 Change-Id: I853a88a3f6e9402c978db18c5a63e903c582040a Signed-off-by: Renn Wu <rewu@nvidia.com> Reviewed-on: http://git-master/r/265871 (cherry picked from commit f115f435d471af22ddec5e9d969662f79193f846) Reviewed-on: http://git-master/r/680353 GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2015-01-20FIQ: Implement WDT FIQ debuggerRenn Wu
Implement Tegra WDT FIQ debug function. Default is disabled. Bug 1581432 Change-Id: Ic81ab4cd3285080016b37191e6e0fab18e330a30 Signed-off-by: Renn Wu <rewu@nvidia.com> Reviewed-on: http://git-master/r/#/c/271988 Reviewed-on: http://git-master/r/662550 Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2014-05-12watchdog: palmas: add support for DTLaxman Dewangan
Add DT supports for the palmas watchdog. bug 1486603 Change-Id: I1f22b3f1eccab87c28f3f0726dcda19af6f584d1 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/387189 Reviewed-on: http://git-master/r/406970 GVS: Gerrit_Virtual_Submit
2014-04-10watchdog: tegra: fix build errorJosh Kuo
fix build error when tegra watchdog is enabled Bug 1485770 Change-Id: Idea7e779b7b06e329751c1a1f0b8185969df020b Signed-off-by: Josh Kuo <joshk@nvidia.com> Reviewed-on: http://git-master/r/391678 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-20watchdog: tegra: Correct the disable logicSrinivas
Correct the logic to check if WDT is enabled. Fix another coding bug if CONFIG_WATCHDOG_NOWAYOUT is not defined. Bug 1384384 Change-Id: Ib6378bb9a080cf8c9fc724a5856c0fc665064ff1 Signed-off-by: Srinivas <ysrinivas@nvidia.com> Reviewed-on: http://git-master/r/357684 Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com> Tested-by: Revati Ranjan Prasad <revatip@nvidia.com> Reviewed-by: Revati Ranjan Prasad <revatip@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
2014-03-14watchdog: tegra: remove CONFIG_TEGRA_USE_SECURE_KERNEL usageVarun Wadekar
CONFIG_TEGRA_USE_SECURE_KERNEL will be deprecated moving forward. Since we are using TLK as the secure firmware it makes more sense to use Trusted Little Kernel driver's config instead. Bug 1475528 Change-Id: I16e5cf4dbff8ef91524c8ff3c6d28a2589f91435 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/377618
2014-03-13Merge branch 'linux-3.10.33' into dev-kernel-3.10Deepak Nibade
Bug 1456092 Change-Id: I3021247ec68a3c2dddd9e98cde13d70a45191d53 Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
2014-02-09Revert "ARM: tegra: trustzone: Single kernel to work in both secure and ↵Varun Wadekar
non-secure mode." This reverts commit 7f93a0dddf39f372c064f772f9af6903e91aaacf as the t132ref builds break with the following errors - <android>/kernel/drivers/platform/tegra/../../../arch/arm/mach-tegra/reset.c:45: undefined reference to `is_secure_mode' <android>/kernel/drivers/platform/tegra/../../../arch/arm/mach-tegra/reset.c:57: undefined reference to `is_secure_mode' <android>/kernel/drivers/platform/tegra/../../../arch/arm/mach-tegra/reset.c:58: undefined reference to `tegra_generic_smc' Change-Id: I4e44c2ffba4e1c013213e543b67f2d49a928b764 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/365347
2014-02-09ARM: tegra: trustzone: Single kernel to work in both secure and non-secure mode.Nitin Sehgal
- Remove CONFIG_TEGRA_USE_SECURE_KERNEL config option - Use DBGDSCR.NS bit to dynamically get secure/non-secure mode - Replace ifdefs with dynamic code. - Keep CONFIG_TRUSTED_LITTLE_KERNEL to enable secure os bug 1411345 Change-Id: I75ddfed7a35fcb30e2772bb43057ae022bcf09b3 Signed-off-by: Nitin Sehgal <nsehgal@nvidia.com> Reviewed-on: http://git-master/r/353155 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2013-12-20sc1200_wdt: Fix oopsAlan
commit dace8bbfccfd9e4fcccfffcfbd82881fda3e756f upstream. If loaded with isapnp = 0 the driver explodes. This is catching people out now and then. What should happen in the working case is a complete mystery and the code appears terminally confused, but we can at least make the error path work properly. Signed-off-by: Alan Cox <alan@linux.intel.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Partially-Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=53991 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-20watchdog: tegra_wdt: trigger FIQ if any CPU hangsVarun Wadekar
We have already configured the FIQ debugger to give us callstack for any online CPU. Bug 1326082 Change-Id: I26d15084bd687f718631005881288c39f9e36081 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/338251
2013-11-21watchdog: as3722_wdt: support for AMS AS3722Bibek Basu
Add watchdog timer driver for as3722 device. The timer can be start/stop and set timing through watchdog subsystem callbacks. Bug 1396052 Change-Id: Ib4ce5bdac1bcca37907c5f89820a2719d54ce442 Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/333643 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-10-31Merge tag 'v3.10.17' into dev-kernel-3.10Ajay Nandakumar
This is the 3.10.17 stable release Conflicts: drivers/usb/host/xhci.c Change-Id: I6bd3b15ff92a0b94568b9d02e9bb1036becfca20
2013-10-18watchdog: ts72xx_wdt: locking bug in ioctlDan Carpenter
commit 8612ed0d97abcf1c016d34755b7cf2060de71963 upstream. Calling the WDIOC_GETSTATUS & WDIOC_GETBOOTSTATUS and twice will cause a interruptible deadlock. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Cc: Jonghwan Choi <jhbird.choi@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-16arm: tegra: support for FIQ debugger with secure OSVarun Wadekar
Most of the set up for the debugger is done by the secure OS, but the kernel setup that needs to be done is done here. Use the following config options to enable the debugger - CONFIG_FIQ=y CONFIG_TEGRA_FIQ_DEBUGGER=y CONFIG_FIQ_GLUE=y CONFIG_FIQ_DEBUGGER=y CONFIG_FIQ_DEBUGGER_CONSOLE=y CONFIG_TEGRA_WATCHDOG=y CONFIG_TEGRA_WATCHDOG_ENABLE_ON_PROBE=y Bug 1326082 Original-author: Hyung Taek Ryoo <hryoo@nvidia.com> Change-Id: If1a5dd4f158530dea6c0455ead74a8eeaa226163 Reviewed-on: http://git-master/r/#/c/261217 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/289165
2013-09-14palmas: obtain IRQ from palmas_irq_get_virqAjay Nandakumar
obtain interrupts through palmas_irq_get_virq instead of platform_get_irq for MFD palmas drivers. Change-Id: I66791b6adcb2c7f365d5b90d7b76c6d3ad66c8c6 Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/267068 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
2013-09-14fixup! watchdog: max77660: provide mechanism for resetting WDT in kthreadDan Willemsen
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
2013-09-14fixup: remove __dev*Dan Willemsen
2013-09-14watchdog: max77660: donot reset WDT from thread on suspendLaxman Dewangan
If device is suspended then do not reset WDT timer from thread. bug 1257433 Change-Id: I4e5a5faea20365e7387b26404bb7e98ffe25f832 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/221389 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Greg Heinrich <gheinrich@nvidia.com> Tested-by: Prashant Malani <pmalani@nvidia.com>
2013-09-14watchdog: max77660: provide mechanism for resetting WDT in kthreadLaxman Dewangan
The Maxim77660 system watchdog timer generates interrupt 2 second before it expire. Within this 2 second, it need to reset the timer. Sometime, on cpu stress, it is not possible to reset wdt in 2 sec and in this case it is require to have more time. Add high priority kthread which run on more faster way and reset wdt in much advance of expire. The time offset is configurable through platform data. Change-Id: I7610bc301889c0e9397868c990594ee7374948f0 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/212999 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2013-09-14watchdog: palmas: add palmas watchdog timerLaxman Dewangan
Add watchdog timer driver for palmas device. The timer can be start/stop and set timing through watchdog subsystem callbacks. The driver also support wakeup capability and wakeup can be enable/disable through user level power wakeup sysfs interface. Change-Id: Icda02290f22ccdc45f2cfa675b8a7dae73f4d313 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/203663 (cherry picked from commit d6fc5598f90444260ed17f88d9ecceeb7c252ca7) Reviewed-on: http://git-master/r/211595 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2013-09-14watchdog: max77660: correctly pass mask and valLaxman Dewangan
Correctly pass the mask and value when calling max77660_reg_update() for timeout update. bug 1255168 Change-Id: I83de0f061db644c79cdee948ffa221e8bad5bcf5 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/211671 Tested-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit
2013-09-14watchdog: tegra: Only support one wdt deviceBo Yan
Change-Id: I91dd3214092ab5b450e74bc5bf772ee02f6b432e Signed-off-by: Bo Yan <byan@nvidia.com> Reviewed-on: http://git-master/r/207770 (cherry picked from commit 17d14202ad24baec56574b52001cc7ba4c625b9c) Reviewed-on: http://git-master/r/210112 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2013-09-14watchdog: tegra: add tegra11x supportXin Xie
bug 1239979 Change-Id: I4ca7e4682bf2b27254024f9e8236c7e8868b4e73 Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/202740 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2013-09-14watchdog: tegra: fix reboot reasonXin Xie
bug 1239765 Change-Id: Ia2c5c83c0489b21d3fb5dcc005a9b7c07fb9b98c Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/202662 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2013-09-14watchdog: max77660: correct dependency flagPradeep Goudagunta
Bug 122235 Change-Id: Iebc1c97d0c973db9d17749f70099458b94e9079b Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/196004 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-09-14watchdog: max77660: initialize driver earlyLaxman Dewangan
Initialize watchdog time early so that it can handle the watchdog timer expire effectively. Bug 1225350 Change-Id: I7338863639bbc3c634a891ff418b3c486410779e Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/195510 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Tested-by: Bitan Biswas <bbiswas@nvidia.com>
2013-09-14watchdog: max77660: Set wakeup capablePradeep Goudagunta
Set watchdog max77660 IRQ as wakeup capable. Change-Id: I9948b59283072061d3ab5c074f387ea1ba4e7934 Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/194718 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-09-14watchdog: max77660: implement suspend/resume of watchdog timerLaxman Dewangan
Implement suspend/resume of MAX77660 system watchdog timer: - Keep enabling if wakeup enable. - Disable watchdog timer in suspend and re-enable in resume if wakeup from watchdog timer is not enabled and timeout is set. Change-Id: I90ee8c43e11f947ec71370a9095357b229f89d36 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/194547
2013-09-14mfd: max77660: use MAX77660 name space for global config regLaxman Dewangan
Use the namespaced macro for MAX77660 global config registers. Accordingly changed the code. Change-Id: I75ab0fbad978359b22dcdc419dd5830460194732 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/194454
2013-09-14watchdog: max77660: Add support for system watchdog timerLaxman Dewangan
Add watchdog timer driver for MAX77660 system watch dog timer. Change-Id: I2470f90f924d648d12d8303be6524dd5a2401521 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/192674 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2013-09-14gcov-kernel: Add GCOV_KERNEL := y to MakefilesJuha Tukkinen
These changes have no effect if CONFIG_GCOV_KERNEL is not set in defconfig. It is easier to trigger GCOV for kernel if this patch is in by only setting the before mentioned flag. Change-Id: I8aade309da2da62c4b3889bd84e4123ba8f182da Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com> Reviewed-on: http://git-master/r/62999 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Rebase-Id: R4c238f707f1db600f188ae83426336753992b7be
2013-09-14watchdog: tegra: fix compilation errorBibek Basu
include module.h to fix broken compilation with tegra watchdog enabled Bug 1179099 Change-Id: Ic03f43ab3f3fef0c190a46271d16b192f04539f7 Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/165241 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2013-09-14watchdog: tegra: enable compile warning as errorschowdary
- Add compilation flag to treat warning as error - Handle error of unused variable - Handle error of uninitialised variable bug 949219 Change-Id: I07437be5eaa7bf7abe5494c828690b6be3b98178 Signed-off-by: schowdary <schowdary@nvidia.com> Reviewed-on: http://git-master/r/118039 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com> Rebase-Id: R5158d12bf942a5189cb5a7cbc838096dda4d4915
2013-09-14watchdog: tegra: Add support for FIQ debuggerKamal Kannan Balagopalan
Enable FIQ on 2nd watchdog expiry to make use of FIQ debugger. FIQ debugger can be used to dump call-stack and registers when WDT logic triggers FIQ on 2nd timeout. Bug 970018 Change-Id: Ia2e7f8b136499974ff51f2f0c2ef55704dfe37e1 Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com> Reviewed-on: http://git-master/r/110953 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Steve Kuo <stevek@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Rc00872f12af72dec27c36f5c6d83e2f6fd381843
2013-09-14watchdog: tegra: Revamp Tegra watchdog supportKamal Kannan Balagopalan
- Make all CPU watchdogs accessible except WDT0 - CPU WDT0 is reserved for suspend/resume WDT recovery - Fix WDT enable sequence on watchdog driver probe Bug 857748 Change-Id: Ia2d07856c32230ab8c9195fee151af09bce3ddde Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com> Reviewed-on: http://git-master/r/99780 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Steve Kuo <stevek@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R662dc43398da4ce823cb351bd1bb8365623f4185
2013-09-14tegra: watchdog: add enable/disable ioctlXin Xie
Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/70702 (cherry picked from commit 50992cf718c37882d90e2b781fbe3f01b4997df8) Reviewed-on: http://git-master/r/77928 (cherry picked from commit a51315ad482758e53a75096be0415ca9b49b9483) Change-Id: I22389cfc7010937dc60c5b1aa4b59c4992f9906b Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/80003 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R2e55efe6f1be3b3bc79a2eadc0e2c5d39b8f4849
2013-09-14tegra: watchdog: improve Kconfig descriptionXin Xie
Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/70625 (cherry picked from commit 90add398c43bb111903015bb6a3cd57a8d62262f) Reviewed-on: http://git-master/r/77926 (cherry picked from commit 4a781c10f2b302f3b467b69060028f9c3b2f9774) Change-Id: Ia2b4935896a44d1717e20693e26a244c6f556c98 Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/79999 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R497e7d83e2e0f685d6f9d18f72b7ab634420b87f
2013-09-14tegra: wdt: Add KEEPALIVE function to WDT driverKamal Kannan Balagopalan
Add KEEPALIVE functionality to Tegra WDT driver for use by user space applications. Bug 887733 Reviewed-on: http://git-master/r/77135 Change-Id: I966371bc5db34416de08c8dc2af9069b4bd34c5d Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77750 Reviewed-by: Automatic_Commit_Validation_User Rebase-Id: Rad0e04efb1386d078f4359f85c0ba671a3f8c43a
2013-09-14tegra:watchdog: Change timer src to timer10 for watchdog.vdumpa
Fix wdt resource definition issue either. Bug 790458 Original-Change-Id: I7c80d6c243c42a0e632603dfcc255b70995358b2 Reviewed-on: http://git-master/r/20646 Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Tested-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Original-Change-Id: I9897fb6614d75508bd0ffd6e866acf27a24a0cb5 Rebase-Id: R165f408464819298bdcc1f0b677c50b46071be90
2013-09-14tegra:watchdog: Use new watchdog controller.vdumpa
Use new watch dog controller for CONFIG_ARCH_TEGRA_3x_SOC. Bug 790458 Original-Change-Id: I43975a2794f44f612a5f16674cd674aeebe4e6be Reviewed-on: http://git-master/r/19715 Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Tested-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Original-Change-Id: Ic8c9907998a2ab1777ea2b00f1acceb6d66c10e5 Rebase-Id: Ra0b9af5a0642fab2d13816f04c0c340ea42a45c8
2013-09-14watchdog: tegra_wdt: fix WDT open() kernel panicXin Xie
Opening the Tegra WDT device from user space is causing the kernel panic. It is found that the device file private data pointer is passing incorrectly in the orignal code. bug 786885 Original-Change-Id: I4646b02c5a804c07d05ba01e35034408cc8e3e4e Reviewed-on: http://git-master/r/23629 Reviewed-by: Xin Xie <xxie@nvidia.com> Tested-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Rebase-Id: Ra37e36461d02b1482bcb815dc554104cf552544d
2013-09-14watchdog: tegra_wdt: give time for spinlock lockup detection to workJP Abgrall
To allow the spinlock lockup detection to actually trigger after 60 seconds, the tegra_wdt heartbeat needs to be longer than that. Bumping it to 120sec, as at the 50% marker the watchdog takes an interrupt. Change-Id: I099fd7720d65c0e2050fa91161e30485fe84a1ed Signed-off-by: JP Abgrall <jpa@google.com> Rebase-Id: R89dfdbb2a0d1c756a79b5e77205d74a27ab6185b
2013-09-14watchdog: tegra_wdt: Several changes to watchdog driverDmitriy Gruzman
Fix not re-enabling watchdog resume if it was enabled in probe Add clearing watchdog interrupt in probe Remove tegra_wdt_set_timeout Change-Id: I8fdbb6da3eda64a85a73ed85ab979a5ee0261c37 Signed-off-by: Dmitriy Gruzman <dmitriy.gruzman@motorola.com> Rebase-Id: R436dfb410144e55c409b03d3ebd09866a08bd276
2013-09-14watchdog: tegra_wdt: Several changes to watchdog driverRebecca Schultz Zavin
Add a config option to enable the watchdog driver from probe Reduce the default timeout to 30 seconds Read the reset reason and print a messge if the last reboot was due to watchdog reset Change-Id: I7500ef236089b06ffcff3d8e7d86a5b9060b59cb Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> Rebase-Id: R120a350e6eee17d286555670d070584624b654cb
2013-09-14watchdog: add tegra_wdt driverGary King
add a driver for the hardware watchdog timer embedded in NVIDIA Tegra SoCs Change-Id: I45bc829f26f350143d5a07e1f4ddc46d24f3a54c Signed-off-by: Gary King <gking@nvidia.com> Rebase-Id: Rf9253734da02097ba5c6fdfa4aa8ed7a3ca307f7
2013-05-18drivers/watchdog: don't check resource with devm_ioremap_resourceWolfram Sang
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2013-05-09watchdog: Fix race condition in registration codeGuenter Roeck
A race condition exists when registering the first watchdog device. Sequence of events: - watchdog_register_device calls watchdog_dev_register - watchdog_dev_register creates the watchdog misc device by calling misc_register. At that time, the matching character device (/dev/watchdog0) does not yet exist, and old_wdd is not set either. - Userspace gets an event and opens /dev/watchdog - watchdog_open is called and sets wdd = old_wdd, which is still NULL, and tries to dereference it. This causes the kernel to panic. Seen with systemd trying to open /dev/watchdog immediately after it was created. Reported-by: Arkadiusz Miskiewicz <arekm@maven.pl> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Arkadiusz Miskiewicz <arekm@maven.pl> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2013-05-09watchdog: Convert to devm_ioremap_resource()Sachin Kamat
Use the newly introduced devm_ioremap_resource() instead of devm_request_and_ioremap() which provides more consistent error handling. devm_ioremap_resource() provides its own error messages; so all explicit error messages can be removed from the failure code paths. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de> Cc: Gabor Juhos <juhosg@openwrt.org> Cc: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>