Changeset 30924


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

ar71xx: ag71xx: poll PHY status of all available switch ports

File:
1 edited

Legend:

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

    r30923 r30924  
    10711071static void link_function(struct work_struct *work) { 
    10721072        struct ag71xx *ag = container_of(work, struct ag71xx, link_work.work); 
     1073        struct ar7240sw *as = ag->phy_priv; 
    10731074        unsigned long flags; 
    10741075        int i; 
    10751076        int status = 0; 
    10761077 
    1077         for (i = 0; i < 4; i++) { 
     1078        for (i = 0; i < as->swdev.ports; i++) { 
    10781079                int link = ar7240sw_phy_read(ag->mii_bus, i, MII_BMSR); 
    10791080                if(link & BMSR_LSTATUS) { 
Note: See TracChangeset for help on using the changeset viewer.