Skip to content

Commit

Permalink
dsa: mv88e6xxx: Make mv88e6xxx_wait() timeout verbose
Browse files Browse the repository at this point in the history
When mv88e6xxx_wait() returns a timeout, something bad has
happened. Make sure it is noticed by logging an error.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Andrew Lunn authored and David S. Miller committed Aug 20, 2016
1 parent 0f02b4f commit 3085355
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/dsa/mv88e6xxx/chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ static int mv88e6xxx_wait(struct mv88e6xxx_chip *chip, int addr, int reg,
usleep_range(1000, 2000);
}

dev_err(chip->dev, "Timeout while waiting for switch\n");
return -ETIMEDOUT;
}

Expand Down

0 comments on commit 3085355

Please sign in to comment.