diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-08-19 00:01:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-19 17:14:07 -0700 |
commit | 30853553c0e056403e1d6b2915a903401647839a (patch) | |
tree | eaa6889f5bf7358b66e330b7c82be30001d29d7c | |
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>
-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, usleep_range(1000, 2000); } + dev_err(chip->dev, "Timeout while waiting for switch\n"); return -ETIMEDOUT; } |