Re: [PATCH] watchdog: meson: Fix the wrong value of left time

2019-10-03 Thread Kevin Hilman
Xingyu Chen writes: > 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

Re: [PATCH] watchdog: meson: Fix the wrong value of left time

2019-09-30 Thread Guenter Roeck
On 9/29/19 3:53 AM, Xingyu Chen wrote: 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 WA

Re: [PATCH] watchdog: meson: Fix the wrong value of left time

2019-09-30 Thread Neil Armstrong
On 29/09/2019 12:53, Xingyu Chen wrote: > 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

[PATCH] watchdog: meson: Fix the wrong value of left time

2019-09-29 Thread Xingyu Chen
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 sa