]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit048c0291255ea7167d88ccd3705cbd61d11f9f03
tree15639fe17921a5440531214038e878df51317383
parenta048c610bde8231dfc1868222f88a6e052258632
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