Changeset 30923


Ignore:
Timestamp:
2012-03-13T18:29:34+01:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: ag71xx: allow to use port 5 of the AR934x built-in switch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ar7240.c

    r30841 r30923  
    10181018        if (sw_is_ar7240(as)) { 
    10191019                swdev->name = "AR7240/AR9330 built-in switch"; 
     1020                swdev->ports = AR7240_NUM_PORTS - 1; 
    10201021        } else if (sw_is_ar934x(as)) { 
    10211022                swdev->name = "AR934X built-in switch"; 
     
    10331034                } 
    10341035 
    1035                 if (as->swdata->phy4_mii_en) 
     1036                if (as->swdata->phy4_mii_en) { 
    10361037                        ar7240sw_reg_set(mii, AR934X_REG_OPER_MODE1, 
    10371038                                         AR934X_REG_OPER_MODE1_PHY4_MII_EN); 
     1039                        swdev->ports = AR7240_NUM_PORTS - 1; 
     1040                } else { 
     1041                        swdev->ports = AR7240_NUM_PORTS; 
     1042                } 
    10381043        } else { 
    10391044                pr_err("%s: unsupported chip, ctrl=%08x\n", 
     
    10421047        } 
    10431048 
    1044         swdev->ports = AR7240_NUM_PORTS - 1; 
    10451049        swdev->cpu_port = AR7240_PORT_CPU; 
    10461050        swdev->vlans = AR7240_MAX_VLANS; 
Note: See TracChangeset for help on using the changeset viewer.