From 5e97cfa1061410d9005ce92c3f34223adf955924 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Mon, 9 May 2005 14:28:52 -0700 Subject: [PATCH] Add memory timing warning to smc91x Ethernet driver Adds memory timing warning to smc91x Ethernet driver. Signed-off-by: Tony Lindgren --- drivers/net/smc91x.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c index 5e561ba4433..80224ad8da3 100644 --- a/drivers/net/smc91x.c +++ b/drivers/net/smc91x.c @@ -488,6 +488,11 @@ static inline void smc_rcv(struct net_device *dev) dev->name, packet_number, status, packet_len, packet_len); + if (unlikely(packet_len == 0 && !(status & RS_ERRORS))) { + printk(KERN_ERR "%s: bad memory timings: rxlen %u status %x\n", + dev->name, packet_len, status); + status |= RS_TOOSHORT; + } back: if (unlikely(packet_len < 6 || status & RS_ERRORS)) { if (status & RS_TOOLONG && packet_len <= (1514 + 4 + 6)) { -- 2.41.1