diff options
author | Nick Bowler <nbowler@elliptictech.com> | 2011-07-15 19:04:02 +0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2011-07-27 01:19:56 +0400 |
commit | 081d83a3393f65adc94fc4240b9926be3054f9dc (patch) | |
tree | 8d39c1fc1c3921f42afa009a8828180f1589931b /drivers/watchdog/ib700wdt.c | |
parent | da3e515024ba32aaf0d524518ce39a8fb77332cd (diff) | |
download | linux-081d83a3393f65adc94fc4240b9926be3054f9dc.tar.xz |
watchdog: sp805: Flush posted writes in enable/disable.
There are no reads in these functions, so if MMIO writes are posted,
the writes in enable/disable may not have completed by the time these
functions return. If the functions run from different CPUs, it's
in theory possible for the writes to be interleaved, which would be
disastrous for this driver.
At the very least, we need an mmiowb() before releasing the lock, but
since it seems desirable for the watchdog timer to be actually stopped
or reset when these functions return, read the lock register to force
the writes out.
Signed-off-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/ib700wdt.c')
0 files changed, 0 insertions, 0 deletions