mirror of https://lore.kernel.org/lkml/
 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 4/6] wifi: wilc1000: Use device-specific error logging
Date: Mon, 23 Nov 2026 15:41:18 +0200	[thread overview]
Message-ID: <20261123134120.32638-5-mihai.sain@microchip.com> (raw)
In-Reply-To: <20261123134120.32638-1-mihai.sain@microchip.com>

Use dev_err() instead of pr_err() when reporting a failure to
retrieve the MAC address from the chip.

This associates the error message with the SDIO device, making
it easier to identify the source of the error in kernel logs.

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

diff --git a/drivers/net/wireless/microchip/wilc1000/sdio.c b/drivers/net/wireless/microchip/wilc1000/sdio.c
index 67dea1360f0a..a328e1b6f5de 100644
--- a/drivers/net/wireless/microchip/wilc1000/sdio.c
+++ b/drivers/net/wireless/microchip/wilc1000/sdio.c
@@ -192,7 +192,7 @@ static int wilc_sdio_probe(struct sdio_func *func,
 
 	ret = wilc_load_mac_from_nv(wilc);
 	if (ret) {
-		pr_err("Can not retrieve MAC address from chip\n");
+		dev_err(&func->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 " 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 ` Mihai Sain [this message]
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-5-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

all inboxes | Powered by JetHome®