From: Max.Nekludov@us.elster.com Date: Fri, 29 Mar 2013 05:27:36 +0000 (+0000) Subject: ks8851: Fix interpretation of rxlen field. X-Git-Tag: v3.9-rc6~38^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14bc435ea54cb888409efb54fc6b76c13ef530e9;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed