summaryrefslogtreecommitdiff
path: root/drivers/watchdog/pcwd_usb.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-03-02 18:31:12 +0100
committerWim Van Sebroeck <wim@iguana.be>2017-05-18 18:51:24 +0200
commitddd6d240b26dcb8b8dc98bd493eba944dd97ebc8 (patch)
tree3841ccf38b20b4e0b3adbb3aa12c801cff69450e /drivers/watchdog/pcwd_usb.c
parent015b528644a84b0018d3286ecd6ea5f82dce0180 (diff)
downloadlwn-ddd6d240b26dcb8b8dc98bd493eba944dd97ebc8.tar.gz
lwn-ddd6d240b26dcb8b8dc98bd493eba944dd97ebc8.zip
watchdog: sama5d4: fix race condition
WDT_MR and WDT_CR must not updated within three slow clock periods after the last ping (write to WDT_CR or WDT_MR). Ensure enough time has elapsed before writing those registers. wdt_write() waits for 4 periods to ensure at least 3 edges are seen by the IP. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Wenyou.Yang <wenyou.yang@microchip.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/pcwd_usb.c')
0 files changed, 0 insertions, 0 deletions