From: Luo Jie <quic_luoj@quicinc.com>
To: Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: <netdev@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, Luo Jie <quic_luoj@quicinc.com>
Subject: [PATCH net-next v2 0/3] Add shared PHY counter support for QCA807x and QCA808x
Date: Mon, 14 Jul 2025 22:58:54 +0800 [thread overview]
Message-ID: <20250714-qcom_phy_counter-v2-0-94dde9d9769f@quicinc.com> (raw)
The implementation of the PHY counter is identical for both QCA808x and
QCA807x series devices. This includes counters for both good and bad CRC
frames in the RX and TX directions, which are active when CRC checking
is enabled.
This patch series introduces PHY counter functions into a shared library,
enabling counter support for the QCA808x and QCA807x families through this
common infrastructure. Additionally, enable CRC checking and configure
automatic clearing of counters after reading within config_init() to ensure
accurate counter recording.
Signed-off-by: Luo Jie <quic_luoj@quicinc.com>
---
Changes in v2:
- Update to use the standardized PHY statistics framework.
- Enabled automatic clearing of counters following each read operation,
ensuring support for 64-bit statistics.
- Link to v1: https://lore.kernel.org/r/20250709-qcom_phy_counter-v1-0-93a54a029c46@quicinc.com
---
Luo Jie (3):
net: phy: qcom: Add PHY counter support
net: phy: qcom: qca808x: Support PHY counter
net: phy: qcom: qca807x: Support PHY counter
drivers/net/phy/qcom/qca807x.c | 25 +++++++++++++
drivers/net/phy/qcom/qca808x.c | 23 ++++++++++++
drivers/net/phy/qcom/qcom-phy-lib.c | 74 +++++++++++++++++++++++++++++++++++++
drivers/net/phy/qcom/qcom.h | 23 ++++++++++++
4 files changed, 145 insertions(+)
---
base-commit: b06c4311711c57c5e558bd29824b08f0a6e2a155
change-id: 20250709-qcom_phy_counter-49fe93241fdd
Best regards,
--
Luo Jie <quic_luoj@quicinc.com>
next reply other threads:[~2025-07-14 14:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-14 14:58 Luo Jie [this message]
2025-07-14 14:58 ` [PATCH net-next v2 1/3] net: phy: qcom: Add PHY counter support Luo Jie
2025-07-14 14:58 ` [PATCH net-next v2 2/3] net: phy: qcom: qca808x: Support PHY counter Luo Jie
2025-07-15 7:49 ` kernel test robot
2025-07-14 14:58 ` [PATCH net-next v2 3/3] net: phy: qcom: qca807x: " Luo Jie
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=20250714-qcom_phy_counter-v2-0-94dde9d9769f@quicinc.com \
--to=quic_luoj@quicinc.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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).