Linux wireless drivers development
 help / color / mirror / Atom feed
From: Mihai Sain <mihai.sain@microchip.com>
To: <ajay.kathat@microchip.com>, <claudiu.beznea@tuxon.dev>
Cc: <linux-wireless@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	"Mihai Sain" <mihai.sain@microchip.com>
Subject: [PATCH 3/6] wifi: wilc1000: Use device-specific logging for interrupt errors
Date: Mon, 23 Nov 2026 15:41:17 +0200	[thread overview]
Message-ID: <20261123134120.32638-4-mihai.sain@microchip.com> (raw)
In-Reply-To: <20261123134120.32638-1-mihai.sain@microchip.com>

Replace pr_err() with dev_err() in the upper-half and bottom-half
interrupt handlers to associate error messages with the WILC device.

This provides more contextual and consistent device-specific logging
when an interrupt occurs while the device is closing.

Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
---
 drivers/net/wireless/microchip/wilc1000/netdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/microchip/wilc1000/netdev.c b/drivers/net/wireless/microchip/wilc1000/netdev.c
index d3343113cea5..7cdb41ac5eb0 100644
--- a/drivers/net/wireless/microchip/wilc1000/netdev.c
+++ b/drivers/net/wireless/microchip/wilc1000/netdev.c
@@ -34,7 +34,7 @@ static irqreturn_t isr_uh_routine(int irq, void *user_data)
 	struct wilc *wilc = user_data;
 
 	if (wilc->close) {
-		pr_err("Can't handle UH interrupt\n");
+		dev_err(wilc->dev, "Can't handle UH interrupt\n");
 		return IRQ_HANDLED;
 	}
 	return IRQ_WAKE_THREAD;
@@ -45,7 +45,7 @@ static irqreturn_t isr_bh_routine(int irq, void *userdata)
 	struct wilc *wilc = userdata;
 
 	if (wilc->close) {
-		pr_err("Can't handle BH interrupt\n");
+		dev_err(wilc->dev, "Can't handle BH interrupt\n");
 		return IRQ_HANDLED;
 	}
 
-- 
2.56.1


  parent reply	other threads:[~2026-11-23 13:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 13:41 [PATCH 0/6] wifi: wilc1000: Improve error logging Mihai Sain
2026-11-23 13:41 ` [PATCH 1/6] wifi: wilc1000: Use netdev_err() for WoWLAN trigger errors Mihai Sain
2026-11-23 13:41 ` [PATCH 2/6] wifi: wilc1000: Use wiphy_err() for interface limit error Mihai Sain
2026-11-23 13:41 ` Mihai Sain [this message]
2026-11-23 13:41 ` [PATCH 4/6] wifi: wilc1000: Use device-specific error logging Mihai Sain
2026-11-23 13:41 ` [PATCH 5/6] wifi: wilc1000: Use device-specific error logging for MAC address retrieval failure Mihai Sain
2026-11-23 13:41 ` [PATCH 6/6] wifi: wilc1000: Use device-specific logging Mihai Sain

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=20261123134120.32638-4-mihai.sain@microchip.com \
    --to=mihai.sain@microchip.com \
    --cc=ajay.kathat@microchip.com \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@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