Commit 0974f1f0 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller

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: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f88d5d68
...@@ -152,6 +152,15 @@ static int aqr_read_status(struct phy_device *phydev) ...@@ -152,6 +152,15 @@ static int aqr_read_status(struct phy_device *phydev)
return 0; return 0;
} }
static int aqcs109_config_init(struct phy_device *phydev)
{
/* AQCS109 belongs to a chip family partially supporting 10G and 5G.
* PMA speed ability bits are the same for all members of the family,
* AQCS109 however supports speeds up to 2.5G only.
*/
return phy_set_max_speed(phydev, SPEED_2500);
}
static struct phy_driver aqr_driver[] = { static struct phy_driver aqr_driver[] = {
{ {
PHY_ID_MATCH_MODEL(PHY_ID_AQ1202), PHY_ID_MATCH_MODEL(PHY_ID_AQ1202),
...@@ -208,6 +217,7 @@ static struct phy_driver aqr_driver[] = { ...@@ -208,6 +217,7 @@ static struct phy_driver aqr_driver[] = {
.name = "Aquantia AQCS109", .name = "Aquantia AQCS109",
.aneg_done = genphy_c45_aneg_done, .aneg_done = genphy_c45_aneg_done,
.get_features = genphy_c45_pma_read_abilities, .get_features = genphy_c45_pma_read_abilities,
.config_init = aqcs109_config_init,
.config_aneg = aqr_config_aneg, .config_aneg = aqr_config_aneg,
.config_intr = aqr_config_intr, .config_intr = aqr_config_intr,
.ack_interrupt = aqr_ack_interrupt, .ack_interrupt = aqr_ack_interrupt,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment