watchdog: versal: Add support for expire now
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Tue, 28 Sep 2021 06:01:59 +0000 (11:31 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 30 Sep 2021 10:30:38 +0000 (12:30 +0200)
commitdced079c53b283e15f04282f405de410a9be584d
treec390982c3927bfafa8d4294501f2889dc440544f
parent8c287ed8c3a392d2fd717054511b53851bce02f0
watchdog: versal: Add support for expire now

Wdt expire command makes the wdt to count least possible ticks(1)
and expires immediately. Add expire_now option to the xlnx_wwdt_ops
and implement it by calling xlnx_wwdt_start() with minimum possible
count(1).

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Link: https://lore.kernel.org/r/1632808919-8600-3-git-send-email-ashok.reddy.soma@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/watchdog/xilinx_wwdt.c