mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Stefan Kerkmann <s.kerkmann@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
	 BAREBOX <barebox@lists.infradead.org>
Cc: Stefan Kerkmann <s.kerkmann@pengutronix.de>
Subject: [PATCH 2/4] net: usb: r8152: print the detected version
Date: Thu, 07 Aug 2025 17:53:11 +0200	[thread overview]
Message-ID: <20250807-fix-rtl8152-dropped-packages-v1-2-a71d05b4d166@pengutronix.de> (raw)
In-Reply-To: <20250807-fix-rtl8152-dropped-packages-v1-0-a71d05b4d166@pengutronix.de>

Which is helpful during debugging to know which version of the chipset
is used.

Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
---
 drivers/net/usb/r8152.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index e29dd2ba43cedd9204f9cc418975ba1ace4f5167..f7f4656e1c43bdfe8cfdb877c3e49b9d8816a7eb 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -1053,6 +1053,9 @@ static void r8152_get_version(struct r8152 *tp)
 			/* Found a supported version */
 			tp->version = r8152_versions[i].version;
 			tp->supports_gmii = r8152_versions[i].gmii;
+			dev_dbg(&tp->dev->edev.dev,
+				"r8152 tcr version 0x%04x RTL_VER_%02d detected\n",
+				tcr, tp->version);
 			break;
 		}
 	}

-- 
2.39.5




  parent reply	other threads:[~2025-08-07 15:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-07 15:53 [PATCH 0/4] net: usb: r8152: disable rx aggregation Stefan Kerkmann
2025-08-07 15:53 ` [PATCH 1/4] " Stefan Kerkmann
2025-08-07 15:53 ` Stefan Kerkmann [this message]
2025-08-07 15:53 ` [PATCH 3/4] net: usb: usbnet: calm noisy debug calls Stefan Kerkmann
2025-08-07 15:53 ` [PATCH 4/4] net: usb: add debug call in the receive path Stefan Kerkmann
2025-08-08  8:52 ` [PATCH 0/4] net: usb: r8152: disable rx aggregation Sascha Hauer

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=20250807-fix-rtl8152-dropped-packages-v1-2-a71d05b4d166@pengutronix.de \
    --to=s.kerkmann@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /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