Skip to content

Commit 023fb4b

Browse files
lunndavem330
authored andcommitted
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 <[email protected]> [[email protected]: removed new config_init callback from patch] Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7a25c6c commit 023fb4b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

drivers/net/phy/aquantia.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ static struct phy_driver aqr_driver[] = {
156156
{
157157
PHY_ID_MATCH_MODEL(PHY_ID_AQ1202),
158158
.name = "Aquantia AQ1202",
159-
.features = PHY_10GBIT_FULL_FEATURES,
160159
.aneg_done = genphy_c45_aneg_done,
160+
.get_features = genphy_c45_pma_read_abilities,
161161
.config_aneg = aqr_config_aneg,
162162
.config_intr = aqr_config_intr,
163163
.ack_interrupt = aqr_ack_interrupt,
@@ -166,8 +166,8 @@ static struct phy_driver aqr_driver[] = {
166166
{
167167
PHY_ID_MATCH_MODEL(PHY_ID_AQ2104),
168168
.name = "Aquantia AQ2104",
169-
.features = PHY_10GBIT_FULL_FEATURES,
170169
.aneg_done = genphy_c45_aneg_done,
170+
.get_features = genphy_c45_pma_read_abilities,
171171
.config_aneg = aqr_config_aneg,
172172
.config_intr = aqr_config_intr,
173173
.ack_interrupt = aqr_ack_interrupt,
@@ -176,8 +176,8 @@ static struct phy_driver aqr_driver[] = {
176176
{
177177
PHY_ID_MATCH_MODEL(PHY_ID_AQR105),
178178
.name = "Aquantia AQR105",
179-
.features = PHY_10GBIT_FULL_FEATURES,
180179
.aneg_done = genphy_c45_aneg_done,
180+
.get_features = genphy_c45_pma_read_abilities,
181181
.config_aneg = aqr_config_aneg,
182182
.config_intr = aqr_config_intr,
183183
.ack_interrupt = aqr_ack_interrupt,
@@ -186,8 +186,8 @@ static struct phy_driver aqr_driver[] = {
186186
{
187187
PHY_ID_MATCH_MODEL(PHY_ID_AQR106),
188188
.name = "Aquantia AQR106",
189-
.features = PHY_10GBIT_FULL_FEATURES,
190189
.aneg_done = genphy_c45_aneg_done,
190+
.get_features = genphy_c45_pma_read_abilities,
191191
.config_aneg = aqr_config_aneg,
192192
.config_intr = aqr_config_intr,
193193
.ack_interrupt = aqr_ack_interrupt,
@@ -196,8 +196,8 @@ static struct phy_driver aqr_driver[] = {
196196
{
197197
PHY_ID_MATCH_MODEL(PHY_ID_AQR107),
198198
.name = "Aquantia AQR107",
199-
.features = PHY_10GBIT_FULL_FEATURES,
200199
.aneg_done = genphy_c45_aneg_done,
200+
.get_features = genphy_c45_pma_read_abilities,
201201
.config_aneg = aqr_config_aneg,
202202
.config_intr = aqr_config_intr,
203203
.ack_interrupt = aqr_ack_interrupt,
@@ -206,8 +206,8 @@ static struct phy_driver aqr_driver[] = {
206206
{
207207
PHY_ID_MATCH_MODEL(PHY_ID_AQCS109),
208208
.name = "Aquantia AQCS109",
209-
.features = PHY_10GBIT_FULL_FEATURES,
210209
.aneg_done = genphy_c45_aneg_done,
210+
.get_features = genphy_c45_pma_read_abilities,
211211
.config_aneg = aqr_config_aneg,
212212
.config_intr = aqr_config_intr,
213213
.ack_interrupt = aqr_ack_interrupt,
@@ -216,8 +216,8 @@ static struct phy_driver aqr_driver[] = {
216216
{
217217
PHY_ID_MATCH_MODEL(PHY_ID_AQR405),
218218
.name = "Aquantia AQR405",
219-
.features = PHY_10GBIT_FULL_FEATURES,
220219
.aneg_done = genphy_c45_aneg_done,
220+
.get_features = genphy_c45_pma_read_abilities,
221221
.config_aneg = aqr_config_aneg,
222222
.config_intr = aqr_config_intr,
223223
.ack_interrupt = aqr_ack_interrupt,

0 commit comments

Comments
 (0)