Changeset 30885


Ignore:
Timestamp:
2012-03-11T18:19:14+01:00 (6 years ago)
Author:
juhosg
Message:

generic: ar8216: use usleep_range in ar8216_mii_{read,write}

msleep(1) can sleep for up to 20ms.

File:
1 edited

Legend:

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

    r30884 r30885  
    8888 
    8989        bus->write(bus, 0x18, 0, page); 
    90         msleep(1); /* wait for the page switch to propagate */ 
     90        usleep_range(1000, 2000); /* wait for the page switch to propagate */ 
    9191        lo = bus->read(bus, 0x10 | r2, r1); 
    9292        hi = bus->read(bus, 0x10 | r2, r1 + 1); 
     
    112112 
    113113        bus->write(bus, 0x18, 0, r3); 
    114         msleep(1); /* wait for the page switch to propagate */ 
     114        usleep_range(1000, 2000); /* wait for the page switch to propagate */ 
    115115        bus->write(bus, 0x10 | r2, r1 + 1, hi); 
    116116        bus->write(bus, 0x10 | r2, r1, lo); 
Note: See TracChangeset for help on using the changeset viewer.