summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorMax.Nekludov@us.elster.com <Max.Nekludov@us.elster.com>2013-03-29 09:27:36 +0400
committerDavid S. Miller <davem@davemloft.net>2013-03-29 23:43:08 +0400
commit14bc435ea54cb888409efb54fc6b76c13ef530e9 (patch)
tree02acc6677f57f6be6a82b4ac794298bc415d3bda /samples
parent00cfec37484761a44a3b6f4675a54caa618210ae (diff)
downloadlinux-14bc435ea54cb888409efb54fc6b76c13ef530e9.tar.xz
ks8851: Fix interpretation of rxlen field.
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions