Changeset 35518


Ignore:
Timestamp:
2013-02-08T10:13:18+01:00 (5 years ago)
Author:
juhosg
Message:

generic: ar8216: simplify phy features setup

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

File:
1 edited

Legend:

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

    r35517 r35518  
    17921792                goto err_free_priv; 
    17931793 
     1794        if (ar8xxx_has_gige(priv)) 
     1795                pdev->supported = SUPPORTED_1000baseT_Full; 
     1796        else 
     1797                pdev->supported = SUPPORTED_100baseT_Full; 
     1798        pdev->advertising = pdev->supported; 
     1799 
    17941800        if (pdev->addr != 0) { 
    1795                 if (ar8xxx_has_gige(priv)) { 
    1796                         pdev->supported |= SUPPORTED_1000baseT_Full; 
    1797                         pdev->advertising |= ADVERTISED_1000baseT_Full; 
    1798                 } 
    1799  
    18001801                if (chip_is_ar8316(priv)) { 
    18011802                        /* check if we're attaching to the switch twice */ 
     
    18271828                return 0; 
    18281829        } 
    1829  
    1830         if (ar8xxx_has_gige(priv)) 
    1831                 pdev->supported = SUPPORTED_1000baseT_Full; 
    1832         else 
    1833                 pdev->supported = SUPPORTED_100baseT_Full; 
    1834         pdev->advertising = pdev->supported; 
    18351830 
    18361831        mutex_init(&priv->reg_mutex); 
Note: See TracChangeset for help on using the changeset viewer.