> > static int mv88e6xxx_wait(struct mv88e6xxx_chip *chip, int addr, int reg,
> > u16 mask)
> > {
> > - unsigned long timeout = jiffies + HZ / 10;
> > + int i;
> >
> > - while (time_before(jiffies, timeout)) {
> > + for (i = 0; i < 16; i++) {
> > u16
Hi Andrew,
Andrew Lunn writes:
> The mv88e6xxx driver times out operations on the switch based on
> looping until an elapsed wall clock time is reached. However, if
> usleep_range() sleeps much longer than expected, it could timeout with
> an error without actually checking to
The mv88e6xxx driver times out operations on the switch based on
looping until an elapsed wall clock time is reached. However, if
usleep_range() sleeps much longer than expected, it could timeout with
an error without actually checking to see if the devices has completed
the operation. So replace