From: Wentao Liang <vulab@iscas.ac.cn>
To: alexander.usyskin@intel.com, arnd@arndb.de, gregkh@linuxfoundation.org
Cc: linux-kernel@vger.kernel.org, Wentao Liang <vulab@iscas.ac.cn>,
stable@vger.kernel.org
Subject: [PATCH] mei: Add error logging in IRQ handler to prevent silent failures
Date: Thu, 20 Feb 2025 21:34:35 +0800 [thread overview]
Message-ID: <20250220133435.1060-1-vulab@iscas.ac.cn> (raw)
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: stable@vger.kernel.org # 4.11+
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
---
drivers/misc/mei/hw-me.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/misc/mei/hw-me.c b/drivers/misc/mei/hw-me.c
index d11a0740b47c..5df42a64b4db 100644
--- a/drivers/misc/mei/hw-me.c
+++ b/drivers/misc/mei/hw-me.c
@@ -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);
}
--
2.42.0.windows.2
next reply other threads:[~2025-02-20 13:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-20 13:34 Wentao Liang [this message]
2025-02-20 14:16 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250220133435.1060-1-vulab@iscas.ac.cn \
--to=vulab@iscas.ac.cn \
--cc=alexander.usyskin@intel.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®