ixgbe: Correct X550EM_x revision check
authorMark Rustad <mark.d.rustad@intel.com>
Fri, 20 Nov 2015 21:12:17 +0000 (13:12 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 30 Dec 2015 03:16:07 +0000 (19:16 -0800)
commit3ca2b2506ec9a3b1615930a6810d30ec9aba10a1
tree15639fe17921a5440531214038e878df51317383
parente9ee3238f8a480bbca58e51d02a93628d7c1f265
ixgbe: Correct X550EM_x revision check

The X550EM_x revision check needs to check a value, not just a bit.
Use a mask and check the value. Also remove the redundant check
inside the ixgbe_enter_lplu_t_x550em, because it can only be called
when both the mac type and revision check pass.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c