Changeset 33077


Ignore:
Timestamp:
2012-08-10T08:32:00+02:00 (5 years ago)
Author:
juhosg
Message:

generic: rtl8366_smi: increase delay after switch hw reset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c

    r32943 r33077  
    2525 
    2626#define RTL8366_SMI_ACK_RETRY_COUNT         5 
     27 
     28#define RTL8366_SMI_HW_STOP_DELAY               25      /* msecs */ 
     29#define RTL8366_SMI_HW_START_DELAY              100     /* msecs */ 
    2730 
    2831static inline void rtl8366_smi_clk_delay(struct rtl8366_smi *smi) 
     
    313316        if (smi->hw_reset) { 
    314317                smi->hw_reset(true); 
    315                 msleep(25); 
     318                msleep(RTL8366_SMI_HW_STOP_DELAY); 
    316319                smi->hw_reset(false); 
    317                 msleep(25); 
     320                msleep(RTL8366_SMI_HW_START_DELAY); 
    318321                return 0; 
    319322        } 
     
    12451248        if (smi->hw_reset) { 
    12461249                smi->hw_reset(false); 
    1247                 msleep(25); 
     1250                msleep(RTL8366_SMI_HW_START_DELAY); 
    12481251        } 
    12491252 
Note: See TracChangeset for help on using the changeset viewer.