ixgbe: fix read-modify-write in x550 phy setup
authorPaul Greenwalt <paul.greenwalt@intel.com>
Thu, 15 Mar 2018 12:22:07 +0000 (08:22 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Mar 2018 21:49:07 +0000 (14:49 -0700)
commit9bf1e20f65796382e3b5ef28d0881f7e8fae0c92
tree4524f992f6daff5da38e8afe207c05d86e1a83a3
parent1aa37845f7601ce9159cd08fdf381cfb5f494c12
ixgbe: fix read-modify-write in x550 phy setup

Replaced an assignment operation with an OR operation.

The variable assignment was overwriting the value read from the PHY
register. The OR operation sets only the intended register bits.

The bits that were being overwritten are reserved, so the assignment had no
functional impact.

Reported by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c