Skip to content

Commit c424fc5

Browse files
authored
Merge pull request #252 from ayaan-anwar/qcom-6.18.y
FROMLIST: net: phy: qcom: qca808x: Add .get_rate_matching support
2 parents 8279b54 + 3f4a09a commit c424fc5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

drivers/net/phy/qcom/qca808x.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,15 @@ static void qca808x_get_phy_stats(struct phy_device *phydev,
643643
qcom_phy_get_stats(stats, priv->hw_stats);
644644
}
645645

646+
static int qca808x_get_rate_matching(struct phy_device *phydev,
647+
phy_interface_t iface)
648+
{
649+
if (iface == PHY_INTERFACE_MODE_2500BASEX)
650+
return RATE_MATCH_PAUSE;
651+
652+
return RATE_MATCH_NONE;
653+
}
654+
646655
static struct phy_driver qca808x_driver[] = {
647656
{
648657
/* Qualcomm QCA8081 */
@@ -674,6 +683,7 @@ static struct phy_driver qca808x_driver[] = {
674683
.led_polarity_set = qca808x_led_polarity_set,
675684
.update_stats = qca808x_update_stats,
676685
.get_phy_stats = qca808x_get_phy_stats,
686+
.get_rate_matching = qca808x_get_rate_matching,
677687
}, };
678688

679689
module_phy_driver(qca808x_driver);

0 commit comments

Comments
 (0)