Ignore:
Timestamp:
2011-04-02T18:36:17+02:00 (5 years ago)
Author:
nbd
Message:

rtl8306: do not overwrite registers in the phy fixup, it could mess up other switches (fixes #8911), backport of r26410

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/target/linux/generic-2.6/files/drivers/net/phy/rtl8306.c

    r23441 r26411  
    5757        struct mii_bus *bus; 
    5858        char hwname[sizeof(RTL_NAME_UNKNOWN)]; 
     59        bool fixup; 
    5960}; 
    6061 
     
    257258        u16 pgsel; 
    258259 
     260        if (priv->fixup) 
     261                return; 
     262 
    259263        if (priv->page == page) 
    260264                return; 
     
    924928                return 0; 
    925929 
     930        memset(&priv, 0, sizeof(priv)); 
     931        priv.fixup = true; 
    926932        priv.page = -1; 
    927933        priv.bus = pdev->bus; 
Note: See TracChangeset for help on using the changeset viewer.