From: Jiawen Wu <jiawenwu@trustnetic.com>
To: dev@dpdk.org
Cc: Jiawen Wu <jiawenwu@trustnetic.com>
Subject: [PATCH] net/ngbe: support to identify centec sk21101 PHY
Date: Thu, 23 Oct 2025 11:32:07 +0800 [thread overview]
Message-ID: <4BC1A3490B167701+20251023033207.62299-1-jiawenwu@trustnetic.com> (raw)
Add centec sk21101 PHY ID into the list of identifiable PHY IDs.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
---
drivers/net/ngbe/base/ngbe_phy.c | 1 +
drivers/net/ngbe/base/ngbe_phy_yt.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/net/ngbe/base/ngbe_phy.c b/drivers/net/ngbe/base/ngbe_phy.c
index 6b5c1e47df..4109aa25ae 100644
--- a/drivers/net/ngbe/base/ngbe_phy.c
+++ b/drivers/net/ngbe/base/ngbe_phy.c
@@ -182,6 +182,7 @@ s32 ngbe_get_phy_type_from_id(struct ngbe_hw *hw)
break;
case NGBE_PHYID_YT8521:
case NGBE_PHYID_YT8531:
+ case NGBE_PHYID_SK21101:
if (hw->phy.media_type == ngbe_media_type_fiber)
hw->phy.type = ngbe_phy_yt8521s_sfi;
else
diff --git a/drivers/net/ngbe/base/ngbe_phy_yt.h b/drivers/net/ngbe/base/ngbe_phy_yt.h
index c45bec7ce7..5645af824f 100644
--- a/drivers/net/ngbe/base/ngbe_phy_yt.h
+++ b/drivers/net/ngbe/base/ngbe_phy_yt.h
@@ -9,6 +9,7 @@
#define NGBE_PHYID_YT8521 0x00000110U
#define NGBE_PHYID_YT8531 0x4F51E910U
+#define NGBE_PHYID_SK21101 0x00782010U
/* Common EXT */
#define YT_SMI_PHY 0xA000
--
2.48.1
next reply other threads:[~2025-10-23 3:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-23 3:32 Jiawen Wu [this message]
2025-10-23 16:52 ` Stephen Hemminger
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=4BC1A3490B167701+20251023033207.62299-1-jiawenwu@trustnetic.com \
--to=jiawenwu@trustnetic.com \
--cc=dev@dpdk.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;
as well as URLs for NNTP newsgroup(s).