Skip to content

Commit 0974f1f

Browse files
hkallweitdavem330
authored andcommitted
net: phy: aquantia: remove false 5G and 10G speed ability for AQCS109
AQCS109 belongs to a family of PHY's where certain members don't support 5G or 10G. However for all members of the family the chip reports 10G and 5G capability. Therefore remove the not supported modes for AQCS109. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f88d5d6 commit 0974f1f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/net/phy/aquantia.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,15 @@ static int aqr_read_status(struct phy_device *phydev)
152152
return 0;
153153
}
154154

155+
static int aqcs109_config_init(struct phy_device *phydev)
156+
{
157+
/* AQCS109 belongs to a chip family partially supporting 10G and 5G.
158+
* PMA speed ability bits are the same for all members of the family,
159+
* AQCS109 however supports speeds up to 2.5G only.
160+
*/
161+
return phy_set_max_speed(phydev, SPEED_2500);
162+
}
163+
155164
static struct phy_driver aqr_driver[] = {
156165
{
157166
PHY_ID_MATCH_MODEL(PHY_ID_AQ1202),
@@ -208,6 +217,7 @@ static struct phy_driver aqr_driver[] = {
208217
.name = "Aquantia AQCS109",
209218
.aneg_done = genphy_c45_aneg_done,
210219
.get_features = genphy_c45_pma_read_abilities,
220+
.config_init = aqcs109_config_init,
211221
.config_aneg = aqr_config_aneg,
212222
.config_intr = aqr_config_intr,
213223
.ack_interrupt = aqr_ack_interrupt,

0 commit comments

Comments
 (0)