Skip to content

FROMLIST: net: phy: qcom: qca808x: Add .get_rate_matching support#642

Merged
ayaan-anwar merged 1 commit intoqualcomm-linux:tech/net/phyfrom
ayaan-anwar:tech/net/phy
Feb 9, 2026
Merged

FROMLIST: net: phy: qcom: qca808x: Add .get_rate_matching support#642
ayaan-anwar merged 1 commit intoqualcomm-linux:tech/net/phyfrom
ayaan-anwar:tech/net/phy

Conversation

@ayaan-anwar
Copy link

IQ8 and IQ9 currently report support for only 2.5G due to a design mismatch between the QCA808X PHY and the stmmac MAC drivers. Historically, the stmmac driver has not supported dynamic switching of PHY interface modes, whereas the QCA808X requires switching between 2500BASE-X and SGMII for proper operation at lower link speeds.
Although the upstream community previously NACKed this specific change, a broader PCS rework is underway, and there is active discussion to properly address this behavior. Relevant discussions and context are shared in the links below, along with the associated QLIJIRA for exception approval.

QLIJIRA: QLIJIRA-100
CRs-Fixed: 4432813
Link: https://lore.kernel.org/netdev/20250914-qca808x_rate_match-v1-1-0f9e6a331c3b@oss.qualcomm.com/T/#u
Link: https://lore.kernel.org/netdev/aX4v499Zz0CymZI5@oss.qualcomm.com/#t
Link: https://lore.kernel.org/netdev/aXsLyb+x76%2FWaXcs@oss.qualcomm.com/

Copy link

@qcom-sarohasa qcom-sarohasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks fine.
Reviewed-by: Sarosh Hasan sarosh.hasan@oss.qualcomm.com

Add support for rate matching to the QCA8081 PHY driver to correctly
report its capabilities. Some boards[0][1] with this PHY currently
report support only for 2.5G.

Implement the .get_rate_matching callback to allow phylink to determine
the actual PHY capabilities and report them accurately.

Before:
 # ethtool eth0
  Settings for eth0:
         Supported ports: [  ]
         Supported link modes:   2500baseT/Full
         Supported pause frame use: Symmetric Receive-only
         ...

After:
 # ethtool eth0
  Settings for eth0:
         Supported ports: [  ]
         Supported link modes:   10baseT/Half 10baseT/Full
                                 100baseT/Half 100baseT/Full
                                 1000baseT/Full
                                 2500baseT/Full
         Supported pause frame use: Symmetric Receive-only
         ...

[0] https://lore.kernel.org/all/20250905192350.1223812-3-umang.chheda@oss.qualcomm.com/
[1] https://lore.kernel.org/all/20250908-lemans-evk-bu-v4-12-5c319c696a7d@oss.qualcomm.com/

Link: https://lore.kernel.org/netdev/20250914-qca808x_rate_match-v1-1-0f9e6a331c3b@oss.qualcomm.com/
Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
@ayaan-anwar ayaan-anwar merged commit d02d173 into qualcomm-linux:tech/net/phy Feb 9, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants