summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
diff options
context:
space:
mode:
authorMark Rustad <mark.d.rustad@intel.com>2015-11-20 13:12:17 -0800
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-12-29 19:16:07 -0800
commit3ca2b2506ec9a3b1615930a6810d30ec9aba10a1 (patch)
tree15639fe17921a5440531214038e878df51317383 /drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
parente9ee3238f8a480bbca58e51d02a93628d7c1f265 (diff)
downloadop-kernel-dev-3ca2b2506ec9a3b1615930a6810d30ec9aba10a1.zip
op-kernel-dev-3ca2b2506ec9a3b1615930a6810d30ec9aba10a1.tar.gz
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>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe_type.h')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
index 06add27..5f53cc6 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
@@ -3520,7 +3520,7 @@ struct ixgbe_info {
#define IXGBE_FUSES0_GROUP(_i) (0x11158 + ((_i) * 4))
#define IXGBE_FUSES0_300MHZ BIT(5)
-#define IXGBE_FUSES0_REV1 BIT(6)
+#define IXGBE_FUSES0_REV_MASK (3 << 6)
#define IXGBE_KRM_PORT_CAR_GEN_CTRL(P) ((P) ? 0x8010 : 0x4010)
#define IXGBE_KRM_LINK_CTRL_1(P) ((P) ? 0x820C : 0x420C)
OpenPOWER on IntegriCloud