diff mbox series

bus: ti-sysc: suppress err msg for timers used as clockevent/source

Message ID 20201118141900.25063-1-grygorii.strashko@ti.com (mailing list archive)
State New, archived
Headers show
Series bus: ti-sysc: suppress err msg for timers used as clockevent/source | expand

Commit Message

Grygorii Strashko Nov. 18, 2020, 2:19 p.m. UTC
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(-)

Comments

Tony Lindgren Nov. 19, 2020, 9:18 a.m. UTC | #1
* 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
diff mbox series

Patch

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;
 }