mei: Add error logging in IRQ handler to prevent silent failures
Subsystems (3)
PATCH 1/1 mei: Add error logging in IRQ handler to prevent silent failures
Log mei_irq_write_handler() errors to prevent silent IRQ handling failures.
Fixes 962ff7bcec24 ("mei: replace callback structures used as list head by list_head")
Cc [email protected] # 4.11+
Signed-off-by Wentao Liang <[email protected]>
--- drivers/misc/mei/hw-me.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/misc/mei/hw-me.c +2 -0
@@ -1415,6 +1415,8 @@ irqreturn_t mei_me_irq_thread_handler(int irq, void *dev_id)if (dev->pg_event !=MEI_PG_EVENT_WAIT && dev->pg_event !=MEI_PG_EVENT_RECEIVED ) { rets =mei_irq_write_handler (dev, &cmpl_list); +if (rets) +dev_err (dev->dev,"mei_irq_write_handler ret = %d.\n" , rets); dev->hbuf_is_ready =mei_hbuf_is_ready (dev); }
Signature · 1 line
2.42.0.windows.2
Greg KH
maintainerQuoted 25 lines · Wentao Liang
Log
mei_irq_write_handler()errors to prevent silent IRQ handling failures.Fixes 962ff7bcec24 ("mei: replace callback structures used as list head by list_head")Cc [email protected] # 4.11+Signed-off-by Wentao Liang <[email protected]>--- drivers/misc/mei/hw-me.c | 2 ++ 1 file changed, 2 insertions(+)drivers/misc/mei/hw-me.c +2
-0@@ -1415,6 +1415,8 @@ irqreturn_t mei_me_irq_thread_handler(int irq, void *dev_id)if (dev->pg_event !=MEI_PG_EVENT_WAIT && dev->pg_event !=MEI_PG_EVENT_RECEIVED ) { rets =mei_irq_write_handler (dev, &cmpl_list); +if (rets) +dev_err (dev->dev,"mei_irq_write_handler ret = %d.\n" , rets); dev->hbuf_is_ready =mei_hbuf_is_ready (dev); }Signature · 1 line
2.42.0.windows.2
How was this found and tested?
And why print an error message in an irq handler, isn't that going to be messy? What can the user do with this message?
thanks,
greg k-h