]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Fix MCDI structure field lookup
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 11 Sep 2012 20:46:41 +0000 (21:46 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Tue, 2 Oct 2012 00:58:40 +0000 (01:58 +0100)
commit22b43b6e983b23e3147e2f1c954c1a47f158655e
tree42b1fdd0cee106cbbca7ba0fa20503255a90b800
parent2e8eaa67751264b80311ceb96df07dee9b84979f
sfc: Fix MCDI structure field lookup

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>
drivers/net/ethernet/sfc/mcdi.h