Commit fdbaaa5b authored by Tony Lindgren's avatar Tony Lindgren

smc91x: Add code to detect errors caused by bad memory timings

Add code to detect errors caused by bad memory timings
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 3ac0cbcc
......@@ -497,6 +497,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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment