OSDN Git Service

bus: ti-sysc: Fix timekeeping_suspended warning on resume
authorTony Lindgren <tony@atomide.com>
Tue, 21 Sep 2021 09:42:25 +0000 (12:42 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 21 Sep 2021 08:00:52 +0000 (11:00 +0300)
commitb3e9431854e8f305385d5de225441c0477b936cb
tree8b249fc6b426db416dc0bf59ad71edeced34d833
parent6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f
bus: ti-sysc: Fix timekeeping_suspended warning on resume

On resume we can get a warning at kernel/time/timekeeping.c:824 for
timekeeping_suspended.

Let's fix this by adding separate functions for sysc_poll_reset_sysstatus()
and sysc_poll_reset_sysconfig() and have the new functions handle also
timekeeping_suspended.

If iopoll at some point supports timekeeping_suspended, we can just drop
the custom handling from these functions.

Fixes: d46f9fbec719 ("bus: ti-sysc: Use optional clocks on for enable and wait for softreset bit")
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c