@@ -1564,7 +1564,6 @@ static int eth_dwc_xgmac_set_config(const struct device *dev, enum ethernet_conf
1564
1564
const struct eth_dwc_xgmac_config * dev_conf = (struct eth_dwc_xgmac_config * )dev -> config ;
1565
1565
struct eth_dwc_xgmac_dev_data * dev_data = (struct eth_dwc_xgmac_dev_data * )dev -> data ;
1566
1566
const struct device * phy = dev_conf -> phy_dev ;
1567
- const struct ethphy_driver_api * phy_api = phy -> api ;
1568
1567
enum phy_link_speed adv_speeds ;
1569
1568
1570
1569
int retval = 0 ;
@@ -1577,7 +1576,7 @@ static int eth_dwc_xgmac_set_config(const struct device *dev, enum ethernet_conf
1577
1576
adv_speeds =
1578
1577
get_phy_adv_speeds (dev_data -> auto_neg , dev_data -> enable_full_duplex ,
1579
1578
dev_data -> link_speed );
1580
- retval = phy_api -> cfg_link (phy , adv_speeds );
1579
+ retval = phy_configure_link (phy , adv_speeds );
1581
1580
} else {
1582
1581
retval = - EALREADY ;
1583
1582
}
@@ -1599,7 +1598,7 @@ static int eth_dwc_xgmac_set_config(const struct device *dev, enum ethernet_conf
1599
1598
}
1600
1599
adv_speeds = get_phy_adv_speeds (dev_data -> auto_neg , dev_data -> enable_full_duplex ,
1601
1600
dev_data -> link_speed );
1602
- retval = phy_api -> cfg_link (phy , adv_speeds );
1601
+ retval = phy_configure_link (phy , adv_speeds );
1603
1602
break ;
1604
1603
case ETHERNET_CONFIG_TYPE_DUPLEX :
1605
1604
if (config -> full_duplex == dev_data -> enable_full_duplex ) {
@@ -1610,7 +1609,7 @@ static int eth_dwc_xgmac_set_config(const struct device *dev, enum ethernet_conf
1610
1609
1611
1610
adv_speeds = get_phy_adv_speeds (dev_data -> auto_neg , dev_data -> enable_full_duplex ,
1612
1611
dev_data -> link_speed );
1613
- retval = phy_api -> cfg_link (phy , adv_speeds );
1612
+ retval = phy_configure_link (phy , adv_speeds );
1614
1613
break ;
1615
1614
case ETHERNET_CONFIG_TYPE_MAC_ADDRESS :
1616
1615
memcpy (dev_data -> mac_addr , config -> mac_address .addr , ETH_MAC_ADDRESS_SIZE );
0 commit comments