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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:52 +0000 (11:53 +0100)
commit17a3ee000334d192289038a7636cc6deeca5fb05
tree202a4d801d736bfc00c5ad1cc6194c1102b3882c
parentf71f75aceadb65969b432b7d2db70e696ad7166d
watchdog: sprd: check busy bit before new loading rather than after that

[ Upstream commit 3e07d240939803bed9feb2a353d94686a411a7ca ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/watchdog/sprd_wdt.c