Changeset 15034


Ignore:
Timestamp:
2009-03-25T10:15:30+01:00 (8 years ago)
Author:
florian
Message:

[rdc] fix wrong logic in MDIO code and second PHY address

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/rdc/files/drivers/net/r6040.c

    r13230 r15034  
    9292/* PHY CHIP Address */ 
    9393#define PHY1_ADDR       1       /* For MAC1 */ 
    94 #define PHY2_ADDR       2       /* For MAC2 */ 
     94#define PHY2_ADDR       3       /* For MAC2 */ 
    9595#define PHY_MODE        0x3100  /* PHY CHIP Register 0 */ 
    9696#define PHY_CAP         0x01E1  /* PHY CHIP Register 4 */ 
     
    306306        while (limit--) { 
    307307                cmd = ioread16(ioaddr + MMDIO); 
    308                 if (cmd & MDIO_READ) 
     308                if (!(cmd & MDIO_READ)) 
    309309                        break; 
    310310        } 
     
    334334        while (limit--) { 
    335335                cmd = ioread16(ioaddr + MMDIO); 
    336                 if (cmd & MDIO_WRITE) 
     336                if (!(cmd & MDIO_WRITE)) 
    337337                        break; 
    338338        } 
Note: See TracChangeset for help on using the changeset viewer.