watchdog: starfive: Get timeleft correctly
authorXingyu Wu <xingyu.wu@starfivetech.com>
Wed, 9 Nov 2022 06:34:14 +0000 (14:34 +0800)
committerXingyu Wu <xingyu.wu@starfivetech.com>
Thu, 10 Nov 2022 02:12:21 +0000 (10:12 +0800)
commit6c91490b1adcd474cf219b6a075d7d41c5f90433
tree7b12cdfdaa43479d76845559a38816fb616a42fb
parent37c389bcb7db4ccc38244ec9199daa6438bb38a5
watchdog: starfive: Get timeleft correctly

Use flag to count timeleft and the flag is base on
reading register instead of interrupt handler function.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
drivers/watchdog/starfive-wdt.c [changed mode: 0755->0644]