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.2.43~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58b0462071de91bc62f7cff8767ef0723d079a25;p=pandora-kernel.git ks8851: Fix interpretation of rxlen field. [ Upstream commit 14bc435ea54cb888409efb54fc6b76c13ef530e9 ] 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 Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed