]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sfc: Fix MCDI structure field lookup
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 11 Sep 2012 20:46:41 +0000 (21:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 19:11:54 +0000 (12:11 -0700)
commit4d64cdba19f7c0d4c7fa15671b2817cfc5ebc643
tree710d63c4996e9df3fd95f95544ce90b3707e697b
parent9a17de12d2b4c4c9cb5b1414fade61f8e9561625
sfc: Fix MCDI structure field lookup

[ Upstream commit 0a6e5008a9df678b48f8d4e57601aa4270df6c14 ]

The least significant bit number (LBN) of a field within an MCDI
structure is counted from the start of the structure, not the
containing dword.  In MCDI_ARRAY_FIELD() we need to mask it rather
than using the usual EFX_DWORD_FIELD() macro.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/sfc/mcdi.h