From: Andrew Lunn Date: Thu, 18 Aug 2016 22:01:57 +0000 (+0200) Subject: dsa: mv88e6xxx: Make mv88e6xxx_wait() timeout verbose X-Git-Tag: MMI-PSA29.97-13-9~6950^2~57^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=30853553c0e056403e1d6b2915a903401647839a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: David S. Miller --- 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; }