summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorXingyu Chen <xingyu.chen@amlogic.com>2019-09-29 18:53:49 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-05 15:34:10 +0100
commit7ba01dcc8af4208b994ce0ce3e6c376039330c09 (patch)
tree89d2bb7f3a128220a21b434469a92cf7c1835a51 /scripts
parent39f124629334f99885f078889ffbd5b3ca5d8e19 (diff)
watchdog: meson: Fix the wrong value of left time
[ Upstream commit 2c77734642d52448aca673e889b39f981110828b ] The left time value is wrong when we get it by sysfs. The left time value should be equal to preset timeout value minus elapsed time value. According to the Meson-GXB/GXL datasheets which can be found at [0], the timeout value is saved to BIT[0-15] of the WATCHDOG_TCNT, and elapsed time value is saved to BIT[16-31] of the WATCHDOG_TCNT. [0]: http://linux-meson.com Fixes: 683fa50f0e18 ("watchdog: Add Meson GXBB Watchdog Driver") Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com> Acked-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions