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 5/6] wifi: wilc1000: Use device-specific error logging for MAC address retrieval failure
Date: Mon, 23 Nov 2026 15:41:19 +0200	[thread overview]
Message-ID: <20261123134120.32638-6-mihai.sain@microchip.com> (raw)
In-Reply-To: <20261123134120.32638-1-mihai.sain@microchip.com>

Replace pr_err() with dev_err() in wilc_bus_probe() to associate the MAC address
retrieval error with the SPI device, providing more context in kernel logs.

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

diff --git a/drivers/net/wireless/microchip/wilc1000/spi.c b/drivers/net/wireless/microchip/wilc1000/spi.c
index e40b829f719d..4408edd61d68 100644
--- a/drivers/net/wireless/microchip/wilc1000/spi.c
+++ b/drivers/net/wireless/microchip/wilc1000/spi.c
@@ -255,7 +255,7 @@ static int wilc_bus_probe(struct spi_device *spi)
 
 	ret = wilc_load_mac_from_nv(wilc);
 	if (ret) {
-		pr_err("Can not retrieve MAC address from chip\n");
+		dev_err(&spi->dev, "Can not retrieve MAC address from chip\n");
 		goto unregister_wiphy;
 	}
 
-- 
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 ` [PATCH 3/6] wifi: wilc1000: Use device-specific logging for interrupt errors Mihai Sain
2026-11-23 13:41 ` [PATCH 4/6] wifi: wilc1000: Use device-specific error logging Mihai Sain
2026-11-23 13:41 ` Mihai Sain [this message]
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-6-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