[PATCH] bus: ti-sysc: Fix error handling for sysc_check_active_timer()

Pavel Machek pavel at denx.de
Tue Aug 10 23:22:31 PDT 2021


On Wed 2021-08-11 09:10:53, Tony Lindgren wrote:
> 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 at 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 at 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 at denx.de>
> Cc: Grygorii Strashko <grygorii.strashko at ti.com>
> Cc: Jarkko Nikula <jarkko.nikula at bitmer.com>
> Signed-off-by: Tony Lindgren <tony at atomide.com>

Reviewed-by: Pavel Machek (CIP) <pavel at denx.de>

Best regards,
								Pavel
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210811/c75e7528/attachment-0001.sig>


More information about the linux-arm-kernel mailing list