OSDN Git Service

amd-xgbe: Fix mask appliciation for Clause 37 register
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Mon, 14 Nov 2016 22:39:07 +0000 (16:39 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 03:12:57 +0000 (22:12 -0500)
commite6fbd47add0d13189bacb1881fe006db5027536e
tree721490558f9ac2c1b8b2cbe0d3218a0ea83f3bb5
parent92547f2be93819fa78d19b862f050dc9d8d72701
amd-xgbe: Fix mask appliciation for Clause 37 register

The application of a mask to clear an area of a clause 37 register value
was not properly applied. Update the code to do the proper application
of the mask.

Reported-by: Marion & Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-mdio.c