git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00cfec3
)
ks8851: Fix interpretation of rxlen field.
author
Max.Nekludov@us.elster.com
<Max.Nekludov@us.elster.com>
Fri, 29 Mar 2013 05:27:36 +0000
(
05:27
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 29 Mar 2013 19:43:08 +0000
(15:43 -0400)
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: Max Nekludov <Max.Nekludov@us.elster.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
No differences found