]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: qcom: Add PHY counter support
authorLuo Jie <quic_luoj@quicinc.com>
Tue, 15 Jul 2025 11:02:26 +0000 (19:02 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Jul 2025 01:35:50 +0000 (18:35 -0700)
commit22bf4bd8ec4fc427cbd07af223a509b80913923a
treeaf380552e5e0158287f6145cd183d8881757f4d2
parenta93f38ebff577a8f131c565ac0fa3d281084df3e
net: phy: qcom: Add PHY counter support

Add PHY counter functionality to the shared library. The implementation
is identical for the current QCA807X and QCA808X PHYs.

The PHY counter can be configured to perform CRC checking for both received
and transmitted packets. Additionally, the packet counter can be set to
automatically clear after it is read.

The PHY counter includes 32-bit packet counters for both RX (received) and
TX (transmitted) packets, as well as 16-bit counters for recording CRC
error packets for both RX and TX.

Signed-off-by: Luo Jie <quic_luoj@quicinc.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250715-qcom_phy_counter-v3-1-8b0e460a527b@quicinc.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/qcom/qcom-phy-lib.c
drivers/net/phy/qcom/qcom.h