]> git.baikalelectronics.ru Git - kernel.git/commit
bus: ti-sysc: Fix watchdog quirk handling
authorTony Lindgren <tony@atomide.com>
Thu, 17 Oct 2019 18:21:44 +0000 (11:21 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 18 Oct 2019 15:45:32 +0000 (08:45 -0700)
commit40a760eea0e3b5a12b7064b060774fa2a4a8250e
treedd95cf5e0af1d35ff107643660cd40a5ba846bfd
parent83b4b06b7408ce798a220098fbeac6cb0a1db352
bus: ti-sysc: Fix watchdog quirk handling

I noticed that when probed with ti-sysc, watchdog can trigger on am3, am4
and dra7 causing a device reset.

Turns out I made several mistakes implementing the watchdog quirk handling:

1. We must do both writes to spr register

2. We must also call the reset quirk on disable

3. On am3 and am4 we need to also set swsup quirk flag

I probably only tested this earlier with watchdog service running when the
watchdog never gets disabled.

Fixes: 8481f81bacb7 ("bus: ti-sysc: Add support for module specific reset quirks")
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c