Errors communicating with the chip are not expected, warn about them.
Signed-off-by: Pavel Machek <[email protected]>
diff --git a/drivers/net/dsa/mv88e6060.c b/drivers/net/dsa/mv88e6060.c
index 65f10fec25b3..f43104f48dbb 100644
--- a/drivers/net/dsa/mv88e6060.c
+++ b/drivers/net/dsa/mv88e6060.c
@@ -30,8 +30,10 @@ static int reg_read(struct dsa_switch *ds, int addr, int reg)
int __ret; \
\
__ret = reg_read(ds, addr, reg); \
- if (__ret < 0) \
+ if (__ret < 0) { \
+ printk("mv88e6060: error reading %x/%x\n", addr, reg);
\
return __ret; \
+ } \
__ret; \
})
@@ -48,8 +50,10 @@ static int reg_write(struct dsa_switch *ds, int addr, int
reg, u16 val)
int __ret; \
\
__ret = reg_write(ds, addr, reg, val); \
- if (__ret < 0) \
+ if (__ret < 0) { \
+ printk("mv88e6060: error writing %x/%x\n", addr, reg);
\
return __ret; \
+ } \
})
static const char *mv88e6060_get_name(struct mii_bus *bus, int sw_addr)
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures)
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
signature.asc
Description: Digital signature
