diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-08-18 18:01:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-19 20:14:07 -0400 |
commit | 30853553c0e056403e1d6b2915a903401647839a (patch) | |
tree | eaa6889f5bf7358b66e330b7c82be30001d29d7c /drivers/net/dsa | |
parent | 0f02b4f75245c9f11f38ed983a2f5e21fd780e80 (diff) |
dsa: mv88e6xxx: Make mv88e6xxx_wait() timeout verbose
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>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/chip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 8c846bce4edf..014b52bd72f1 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c | |||
@@ -325,6 +325,7 @@ static int mv88e6xxx_wait(struct mv88e6xxx_chip *chip, int addr, int reg, | |||
325 | usleep_range(1000, 2000); | 325 | usleep_range(1000, 2000); |
326 | } | 326 | } |
327 | 327 | ||
328 | dev_err(chip->dev, "Timeout while waiting for switch\n"); | ||
328 | return -ETIMEDOUT; | 329 | return -ETIMEDOUT; |
329 | } | 330 | } |
330 | 331 | ||