aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2019-02-20 01:46:22 -0500
committerDavid S. Miller <davem@davemloft.net>2019-02-22 14:39:44 -0500
commit023fb4b51fa975e55b429f624102706f7156395f (patch)
tree9e7eb27160ef30e0ca9e6b46255de8267bd81e3d
parent7a25c6c0aac85bbc50d3ce49cd08888adb14508b (diff)
net: phy: aquantia: Use get_features for the PHYs abilities
Use the new PHY driver call to get the PHYs supported features. Signed-off-by: Andrew Lunn <andrew@lunn.ch> [hkallweit1@gmail.com: removed new config_init callback from patch] Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/phy/aquantia.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c
index 0f772a47a18e..34be44d00c19 100644
--- a/drivers/net/phy/aquantia.c
+++ b/drivers/net/phy/aquantia.c
@@ -156,8 +156,8 @@ static struct phy_driver aqr_driver[] = {
156{ 156{
157 PHY_ID_MATCH_MODEL(PHY_ID_AQ1202), 157 PHY_ID_MATCH_MODEL(PHY_ID_AQ1202),
158 .name = "Aquantia AQ1202", 158 .name = "Aquantia AQ1202",
159 .features = PHY_10GBIT_FULL_FEATURES,
160 .aneg_done = genphy_c45_aneg_done, 159 .aneg_done = genphy_c45_aneg_done,
160 .get_features = genphy_c45_pma_read_abilities,
161 .config_aneg = aqr_config_aneg, 161 .config_aneg = aqr_config_aneg,
162 .config_intr = aqr_config_intr, 162 .config_intr = aqr_config_intr,
163 .ack_interrupt = aqr_ack_interrupt, 163 .ack_interrupt = aqr_ack_interrupt,
@@ -166,8 +166,8 @@ static struct phy_driver aqr_driver[] = {
166{ 166{
167 PHY_ID_MATCH_MODEL(PHY_ID_AQ2104), 167 PHY_ID_MATCH_MODEL(PHY_ID_AQ2104),
168 .name = "Aquantia AQ2104", 168 .name = "Aquantia AQ2104",
169 .features = PHY_10GBIT_FULL_FEATURES,
170 .aneg_done = genphy_c45_aneg_done, 169 .aneg_done = genphy_c45_aneg_done,
170 .get_features = genphy_c45_pma_read_abilities,
171 .config_aneg = aqr_config_aneg, 171 .config_aneg = aqr_config_aneg,
172 .config_intr = aqr_config_intr, 172 .config_intr = aqr_config_intr,
173 .ack_interrupt = aqr_ack_interrupt, 173 .ack_interrupt = aqr_ack_interrupt,
@@ -176,8 +176,8 @@ static struct phy_driver aqr_driver[] = {
176{ 176{
177 PHY_ID_MATCH_MODEL(PHY_ID_AQR105), 177 PHY_ID_MATCH_MODEL(PHY_ID_AQR105),
178 .name = "Aquantia AQR105", 178 .name = "Aquantia AQR105",
179 .features = PHY_10GBIT_FULL_FEATURES,
180 .aneg_done = genphy_c45_aneg_done, 179 .aneg_done = genphy_c45_aneg_done,
180 .get_features = genphy_c45_pma_read_abilities,
181 .config_aneg = aqr_config_aneg, 181 .config_aneg = aqr_config_aneg,
182 .config_intr = aqr_config_intr, 182 .config_intr = aqr_config_intr,
183 .ack_interrupt = aqr_ack_interrupt, 183 .ack_interrupt = aqr_ack_interrupt,
@@ -186,8 +186,8 @@ static struct phy_driver aqr_driver[] = {
186{ 186{
187 PHY_ID_MATCH_MODEL(PHY_ID_AQR106), 187 PHY_ID_MATCH_MODEL(PHY_ID_AQR106),
188 .name = "Aquantia AQR106", 188 .name = "Aquantia AQR106",
189 .features = PHY_10GBIT_FULL_FEATURES,
190 .aneg_done = genphy_c45_aneg_done, 189 .aneg_done = genphy_c45_aneg_done,
190 .get_features = genphy_c45_pma_read_abilities,
191 .config_aneg = aqr_config_aneg, 191 .config_aneg = aqr_config_aneg,
192 .config_intr = aqr_config_intr, 192 .config_intr = aqr_config_intr,
193 .ack_interrupt = aqr_ack_interrupt, 193 .ack_interrupt = aqr_ack_interrupt,
@@ -196,8 +196,8 @@ static struct phy_driver aqr_driver[] = {
196{ 196{
197 PHY_ID_MATCH_MODEL(PHY_ID_AQR107), 197 PHY_ID_MATCH_MODEL(PHY_ID_AQR107),
198 .name = "Aquantia AQR107", 198 .name = "Aquantia AQR107",
199 .features = PHY_10GBIT_FULL_FEATURES,
200 .aneg_done = genphy_c45_aneg_done, 199 .aneg_done = genphy_c45_aneg_done,
200 .get_features = genphy_c45_pma_read_abilities,
201 .config_aneg = aqr_config_aneg, 201 .config_aneg = aqr_config_aneg,
202 .config_intr = aqr_config_intr, 202 .config_intr = aqr_config_intr,
203 .ack_interrupt = aqr_ack_interrupt, 203 .ack_interrupt = aqr_ack_interrupt,
@@ -206,8 +206,8 @@ static struct phy_driver aqr_driver[] = {
206{ 206{
207 PHY_ID_MATCH_MODEL(PHY_ID_AQCS109), 207 PHY_ID_MATCH_MODEL(PHY_ID_AQCS109),
208 .name = "Aquantia AQCS109", 208 .name = "Aquantia AQCS109",
209 .features = PHY_10GBIT_FULL_FEATURES,
210 .aneg_done = genphy_c45_aneg_done, 209 .aneg_done = genphy_c45_aneg_done,
210 .get_features = genphy_c45_pma_read_abilities,
211 .config_aneg = aqr_config_aneg, 211 .config_aneg = aqr_config_aneg,
212 .config_intr = aqr_config_intr, 212 .config_intr = aqr_config_intr,
213 .ack_interrupt = aqr_ack_interrupt, 213 .ack_interrupt = aqr_ack_interrupt,
@@ -216,8 +216,8 @@ static struct phy_driver aqr_driver[] = {
216{ 216{
217 PHY_ID_MATCH_MODEL(PHY_ID_AQR405), 217 PHY_ID_MATCH_MODEL(PHY_ID_AQR405),
218 .name = "Aquantia AQR405", 218 .name = "Aquantia AQR405",
219 .features = PHY_10GBIT_FULL_FEATURES,
220 .aneg_done = genphy_c45_aneg_done, 219 .aneg_done = genphy_c45_aneg_done,
220 .get_features = genphy_c45_pma_read_abilities,
221 .config_aneg = aqr_config_aneg, 221 .config_aneg = aqr_config_aneg,
222 .config_intr = aqr_config_intr, 222 .config_intr = aqr_config_intr,
223 .ack_interrupt = aqr_ack_interrupt, 223 .ack_interrupt = aqr_ack_interrupt,