Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 3d247958 authored by Max.Nekludov@us.elster.com's avatar Max.Nekludov@us.elster.com Committed by Greg Kroah-Hartman
Browse files

ks8851: Fix interpretation of rxlen field.


[ Upstream commit 14bc435e ]

According to the Datasheet (page 52):
15-12 Reserved
11-0 RXBC Receive Byte Count
This field indicates the present received frame byte size.

The code has a bug:
                 rxh = ks8851_rdreg32(ks, KS_RXFHSR);
                 rxstat = rxh & 0xffff;
                 rxlen = rxh >> 16; // BUG!!! 0xFFF mask should be applied

Signed-off-by: default avatarMax Nekludov <Max.Nekludov@us.elster.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 79f0840f
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment