]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Treat all MAC registers as 128-bit
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 25 Nov 2009 16:08:41 +0000 (16:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Nov 2009 23:59:00 +0000 (15:59 -0800)
commit8d8b784cea7c2004f3935346d966cdc9c1a22e7b
treef64ca5e6a4d30831109163bdfaffa3e3f8ab7a93
parent07c94b71a62b5af0ec9bfd4837423b08617e29cb
sfc: Treat all MAC registers as 128-bit

Although all the defined fields in these registers are within 32 bits,
they are architecturally defined as 128-bit like most other Falcon
registers.  In particular, we must use efx_reado() to ensure proper
locking when reading MD_STAT_REG.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/falcon.c
drivers/net/sfc/falcon_xmac.c