public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bus: ti-sysc: suppress err msg for timers used as clockevent/source
@ 2020-11-18 14:19 Grygorii Strashko
  2020-11-19  9:18 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Grygorii Strashko @ 2020-11-18 14:19 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: linux-omap, linux-kernel, Grygorii Strashko

GP Timers used as clockevent/source are not available for ti-sysc bus and
handled by Kernel timekeeping core. Now ti-sysc produces error message
every time such timer is detected:

 "ti-sysc: probe of 48040000.target-module failed with error -16"

Such messages are not necessary, so suppress them by returning -ENXIO
instead of -EBUSY.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 drivers/bus/ti-sysc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
index 792a2878cb16..02186bac1b0b 100644
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -2883,7 +2883,7 @@ static int sysc_check_active_timer(struct sysc *ddata)
 
 	if ((ddata->cfg.quirks & SYSC_QUIRK_NO_RESET_ON_INIT) &&
 	    (ddata->cfg.quirks & SYSC_QUIRK_NO_IDLE))
-		return -EBUSY;
+		return -ENXIO;
 
 	return 0;
 }
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] bus: ti-sysc: suppress err msg for timers used as clockevent/source
  2020-11-18 14:19 [PATCH] bus: ti-sysc: suppress err msg for timers used as clockevent/source Grygorii Strashko
@ 2020-11-19  9:18 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2020-11-19  9:18 UTC (permalink / raw)
  To: Grygorii Strashko; +Cc: linux-omap, linux-kernel

* Grygorii Strashko <grygorii.strashko@ti.com> [201118 14:19]:
> GP Timers used as clockevent/source are not available for ti-sysc bus and
> handled by Kernel timekeeping core. Now ti-sysc produces error message
> every time such timer is detected:
> 
>  "ti-sysc: probe of 48040000.target-module failed with error -16"
> 
> Such messages are not necessary, so suppress them by returning -ENXIO
> instead of -EBUSY.

Thanks applying into fixes.

Tony

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-19  9:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-18 14:19 [PATCH] bus: ti-sysc: suppress err msg for timers used as clockevent/source Grygorii Strashko
2020-11-19  9:18 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox