Changeset 28977


Ignore:
Timestamp:
2011-11-12T11:54:16+01:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: ag71xx: use fixed link parameters if the mii bus is not registered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c

    r28380 r28977  
    199199        struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag); 
    200200 
     201        if (pdata->mii_bus_dev == NULL || 
     202            pdata->mii_bus_dev->bus == NULL ) 
     203                return ag71xx_phy_connect_fixed(ag); 
     204 
    201205        ag->mii_bus = dev_to_mii_bus(pdata->mii_bus_dev); 
    202206        if (ag->mii_bus == NULL) { 
Note: See TracChangeset for help on using the changeset viewer.