diff options
author | Stephan Gerhold <[email protected]> | 2022-06-29 10:48:14 +0200 |
---|---|---|
committer | Wim Van Sebroeck <[email protected]> | 2022-07-23 14:21:27 +0200 |
commit | 4e5b406514fce00b16b7fc8cc5a6c9ec51518b0a (patch) | |
tree | 06e7542e27942743f846e6153e436fcee52b71e6 /drivers/usb/cdns3/cdns3-trace.c | |
parent | 5f02d033f3a512397e2304c3cd0c0d69471e5338 (diff) |
watchdog: pm8916_wdt: Avoid read of write-only PET register
PMIC_WD_RESET_PET is a write-only register that is used to ping
the watchdog. It does not make sense to use read-modify-write
for it: a register read will never return anything but zero.
(And actually even if it did we would still want to write again
to ensure the watchdog is pinged.)
Reduce the overhead for the watchdog ping slightly by using
regmap_write() directly instead.
Signed-off-by: Stephan Gerhold <[email protected]>
Reviewed-by: Loic Poulain <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions