summaryrefslogtreecommitdiff
path: root/arch/x86/platform/atom/punit_atom_debug.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2021-08-11 08:34:46 +0300
committerTony Lindgren <tony@atomide.com>2021-08-11 08:34:46 +0300
commit06a089ef644934372a3062528244fca3417d3430 (patch)
tree4fc0963b0c34309b9238d63e02e4eb1cd4f28adf /arch/x86/platform/atom/punit_atom_debug.c
parent353b7a55dcaf5fb8758e09ebe2ddf5f3adbac7c5 (diff)
downloadlinux-06a089ef644934372a3062528244fca3417d3430.tar.gz
linux-06a089ef644934372a3062528244fca3417d3430.tar.bz2
linux-06a089ef644934372a3062528244fca3417d3430.zip
bus: ti-sysc: Fix error handling for sysc_check_active_timer()
We have changed the return type for sysc_check_active_timer() from -EBUSY to -ENXIO, but the gpt12 system timer fix still checks for -EBUSY. We are also not returning on other errors like we did earlier as noted by Pavel Machek <pavel@denx.de>. Commit 3ff340e24c9d ("bus: ti-sysc: Fix gpt12 system timer issue with reserved status") should have been updated for commit 65fb73676112 ("bus: ti-sysc: suppress err msg for timers used as clockevent/source"). Let's fix the issue by checking for -ENXIO and returning on any other errors as suggested by Pavel Machek <pavel@denx.de>. Fixes: 3ff340e24c9d ("bus: ti-sysc: Fix gpt12 system timer issue with reserved status") Depends-on: 65fb73676112 ("bus: ti-sysc: suppress err msg for timers used as clockevent/source") Reported-by: Pavel Machek <pavel@denx.de> Reviewed-by: Pavel Machek (CIP) <pavel@denx.de> Cc: Grygorii Strashko <grygorii.strashko@ti.com> Cc: Jarkko Nikula <jarkko.nikula@bitmer.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/x86/platform/atom/punit_atom_debug.c')
0 files changed, 0 insertions, 0 deletions