watchdog: sprd: check busy bit before new loading rather than after that
authorLingling Xu <ling_ling.xu@unisoc.com>
Mon, 9 Nov 2020 03:00:54 +0000 (11:00 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 13 Dec 2020 15:17:38 +0000 (16:17 +0100)
commit3e07d240939803bed9feb2a353d94686a411a7ca
treeadceaa9aad5916fa1b8ed840fb6a2da29a004b50
parentf61a59acb462840bebcc192f754fe71b6a16ff99
watchdog: sprd: check busy bit before new loading rather than after that

As the specification described, users must check busy bit before start
a new loading operation to make sure that the previous loading is done
and the device is ready to accept a new one.

[ chunyan: Massaged changelog ]

Fixes: 477603467009 ("watchdog: Add Spreadtrum watchdog driver")
Signed-off-by: Lingling Xu <ling_ling.xu@unisoc.com>
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20201029023933.24548-3-zhang.lyra@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/sprd_wdt.c