Changeset 35549


Ignore:
Timestamp:
2013-02-11T11:05:35+01:00 (5 years ago)
Author:
juhosg
Message:

generic: ar8216: fix PHY features setup

Sujith says:

This commit breaks the WAN port on my AP96 - DHCP fails.
Reverting it fixes the issue.

commit b67cc3a0cdd02973610d4d5a63226d1c44841e94
Author: juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Fri Feb 8 09:13:18 2013 +0000

generic: ar8216: simplify phy features setup

Signed-off-by: Gabor Juhos <juhosg@…>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@355183c298f89-4303-0410-b956-a3cf2f4a3e73

This change restores the previous behaviour and moves
the code into the ar8216_probe function.

Reported-by: Sujith Manoharan <sujith@…>
Signed-off-by: Gabor Juhos <juhosg@…>
Tested-by: Sujith Manoharan <sujith@…>

File:
1 edited

Legend:

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

    r35547 r35549  
    18621862        priv->phy = pdev; 
    18631863 
    1864         if (ar8xxx_has_gige(priv)) 
    1865                 pdev->supported = SUPPORTED_1000baseT_Full; 
    1866         else 
    1867                 pdev->supported = SUPPORTED_100baseT_Full; 
    1868         pdev->advertising = pdev->supported; 
    1869  
    18701864        if (pdev->addr != 0) { 
    18711865                if (chip_is_ar8316(priv)) { 
     
    20512045 
    20522046        ret = ar8xxx_probe_switch(priv); 
     2047        if (ret) 
     2048                goto out; 
     2049 
     2050        if (pdev->addr == 0) { 
     2051                if (ar8xxx_has_gige(priv)) { 
     2052                        pdev->supported = SUPPORTED_1000baseT_Full; 
     2053                        pdev->advertising = ADVERTISED_1000baseT_Full; 
     2054                } else { 
     2055                        pdev->supported = SUPPORTED_100baseT_Full; 
     2056                        pdev->advertising = ADVERTISED_100baseT_Full; 
     2057                } 
     2058        } else { 
     2059                if (ar8xxx_has_gige(priv)) { 
     2060                        pdev->supported |= SUPPORTED_1000baseT_Full; 
     2061                        pdev->advertising |= ADVERTISED_1000baseT_Full; 
     2062                } 
     2063        } 
     2064 
     2065        ret = 0; 
     2066 
     2067out: 
    20532068        ar8xxx_free(priv); 
    2054  
    20552069        return ret; 
    20562070} 
Note: See TracChangeset for help on using the changeset viewer.