Changeset 26392


Ignore:
Timestamp:
2011-04-02T02:47:25+02:00 (7 years ago)
Author:
nbd
Message:

ar71xx: frequent ethernet mac resets upset the MDIO bus on ar7240, so do not run them on every device open, only on tx timeouts

File:
1 edited

Legend:

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

    r23982 r26392  
    575575{ 
    576576        struct ag71xx *ag = netdev_priv(dev); 
    577         struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag); 
    578577        int ret; 
    579578 
     
    581580        if (ret) 
    582581                goto err; 
    583  
    584         if (pdata->is_ar724x) 
    585                 ag71xx_hw_init(ag); 
    586582 
    587583        napi_enable(&ag->napi); 
     
    748744{ 
    749745        struct ag71xx *ag = container_of(work, struct ag71xx, restart_work); 
     746        struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag); 
    750747 
    751748        ag71xx_stop(ag->dev); 
     749 
     750        if (pdata->is_ar724x) 
     751                ag71xx_hw_init(ag); 
     752 
    752753        ag71xx_open(ag->dev); 
    753754} 
Note: See TracChangeset for help on using the changeset viewer.