diff options
| author | Jayachandran C <[email protected]> | 2018-02-28 10:52:20 +0000 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2018-03-03 14:52:32 +0000 |
| commit | 93ac3deb7c220cbcec032a967220a1f109d58431 (patch) | |
| tree | 8c2778bf30f3104d9a2dfecb008e7cdcddf3e0b3 /lib/string_helpers.c | |
| parent | watchdog: f71808e_wdt: Fix magic close handling (diff) | |
| download | kernel-93ac3deb7c220cbcec032a967220a1f109d58431.tar.gz kernel-93ac3deb7c220cbcec032a967220a1f109d58431.zip | |
watchdog: sbsa: use 32-bit read for WCV
According to SBSA spec v3.1 section 5.3:
All registers are 32 bits in size and should be accessed using
32-bit reads and writes. If an access size other than 32 bits
is used then the results are IMPLEMENTATION DEFINED.
[...]
The Generic Watchdog is little-endian
The current code uses readq to read the watchdog compare register
which does a 64-bit access. This fails on ThunderX2 which does not
implement 64-bit access to this register.
Fix this by using lo_hi_readq() that does two 32-bit reads.
Signed-off-by: Jayachandran C <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
