]> 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)
commit2d991ad0346b95a15575ecf407376c16b9a753c8
tree42b1fdd0cee106cbbca7ba0fa20503255a90b800
parentbf2721edecf8008cd1d5f948d3e217a7da7e09c7
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