diff options
author | David S. Miller <davem@davemloft.net> | 2016-09-27 23:22:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-27 23:22:27 -0400 |
commit | dfdc771d03c13d0e170c27cd845bdab716e73576 (patch) | |
tree | bc2be745fbf60ce68f5c8a45a5f23e836eb2b11f | |
parent | 3796c3cbfb91ad1e3269aa0d15060f888063924b (diff) | |
parent | ac28b41aac35e1000712aaa3aee19bf30fd9a312 (diff) |
Merge branch '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue
Jeff Kirsher says:
====================
1GbE Intel Wired LAN Driver Updates 2016-09-27
This series contains updates to igb and igbvf.
Wei Yongjun makes a function static to shut up sparse.
Todd bumps the igb and igbvf version, which is long overdue.
Jake fixes an issue where the PPS SYS_WRAP interrupt was not re-enabled
after a reset, which resulted in disabling of the PPS signaling.
v2: dropped patch 5 of the original series, since the PCI quirk patch
needs to be reworked by Alex and Sasha to address issues that Bjorn
Helgaas and Alex Williamson brought up.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb.h | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb_ethtool.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb_main.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb_ptp.c | 5 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igbvf/netdev.c | 2 |
5 files changed, 9 insertions, 5 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb.h b/drivers/net/ethernet/intel/igb/igb.h index 03fbe4b7663b..d11093dce1b9 100644 --- a/drivers/net/ethernet/intel/igb/igb.h +++ b/drivers/net/ethernet/intel/igb/igb.h | |||
@@ -489,6 +489,7 @@ struct igb_adapter { | |||
489 | struct timecounter tc; | 489 | struct timecounter tc; |
490 | u32 tx_hwtstamp_timeouts; | 490 | u32 tx_hwtstamp_timeouts; |
491 | u32 rx_hwtstamp_cleared; | 491 | u32 rx_hwtstamp_cleared; |
492 | bool pps_sys_wrap_on; | ||
492 | 493 | ||
493 | struct ptp_pin_desc sdp_config[IGB_N_SDP]; | 494 | struct ptp_pin_desc sdp_config[IGB_N_SDP]; |
494 | struct { | 495 | struct { |
diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c index 0c33eca7c832..737b664d004c 100644 --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c | |||
@@ -2704,8 +2704,8 @@ static int igb_rxnfc_write_etype_filter(struct igb_adapter *adapter, | |||
2704 | return 0; | 2704 | return 0; |
2705 | } | 2705 | } |
2706 | 2706 | ||
2707 | int igb_rxnfc_write_vlan_prio_filter(struct igb_adapter *adapter, | 2707 | static int igb_rxnfc_write_vlan_prio_filter(struct igb_adapter *adapter, |
2708 | struct igb_nfc_filter *input) | 2708 | struct igb_nfc_filter *input) |
2709 | { | 2709 | { |
2710 | struct e1000_hw *hw = &adapter->hw; | 2710 | struct e1000_hw *hw = &adapter->hw; |
2711 | u8 vlan_priority; | 2711 | u8 vlan_priority; |
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index a83aa13a5bf4..edc9a6ac5169 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c | |||
@@ -58,7 +58,7 @@ | |||
58 | #include "igb.h" | 58 | #include "igb.h" |
59 | 59 | ||
60 | #define MAJ 5 | 60 | #define MAJ 5 |
61 | #define MIN 3 | 61 | #define MIN 4 |
62 | #define BUILD 0 | 62 | #define BUILD 0 |
63 | #define DRV_VERSION __stringify(MAJ) "." __stringify(MIN) "." \ | 63 | #define DRV_VERSION __stringify(MAJ) "." __stringify(MIN) "." \ |
64 | __stringify(BUILD) "-k" | 64 | __stringify(BUILD) "-k" |
diff --git a/drivers/net/ethernet/intel/igb/igb_ptp.c b/drivers/net/ethernet/intel/igb/igb_ptp.c index 1dd14e166dc8..a7895c4cbcc3 100644 --- a/drivers/net/ethernet/intel/igb/igb_ptp.c +++ b/drivers/net/ethernet/intel/igb/igb_ptp.c | |||
@@ -591,6 +591,7 @@ static int igb_ptp_feature_enable_i210(struct ptp_clock_info *ptp, | |||
591 | tsim |= TSINTR_SYS_WRAP; | 591 | tsim |= TSINTR_SYS_WRAP; |
592 | else | 592 | else |
593 | tsim &= ~TSINTR_SYS_WRAP; | 593 | tsim &= ~TSINTR_SYS_WRAP; |
594 | igb->pps_sys_wrap_on = !!on; | ||
594 | wr32(E1000_TSIM, tsim); | 595 | wr32(E1000_TSIM, tsim); |
595 | spin_unlock_irqrestore(&igb->tmreg_lock, flags); | 596 | spin_unlock_irqrestore(&igb->tmreg_lock, flags); |
596 | return 0; | 597 | return 0; |
@@ -1235,7 +1236,9 @@ void igb_ptp_reset(struct igb_adapter *adapter) | |||
1235 | case e1000_i211: | 1236 | case e1000_i211: |
1236 | wr32(E1000_TSAUXC, 0x0); | 1237 | wr32(E1000_TSAUXC, 0x0); |
1237 | wr32(E1000_TSSDP, 0x0); | 1238 | wr32(E1000_TSSDP, 0x0); |
1238 | wr32(E1000_TSIM, TSYNC_INTERRUPTS); | 1239 | wr32(E1000_TSIM, |
1240 | TSYNC_INTERRUPTS | | ||
1241 | (adapter->pps_sys_wrap_on ? TSINTR_SYS_WRAP : 0)); | ||
1239 | wr32(E1000_IMS, E1000_IMS_TS); | 1242 | wr32(E1000_IMS, E1000_IMS_TS); |
1240 | break; | 1243 | break; |
1241 | default: | 1244 | default: |
diff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c index b0778ba65083..12bb877df860 100644 --- a/drivers/net/ethernet/intel/igbvf/netdev.c +++ b/drivers/net/ethernet/intel/igbvf/netdev.c | |||
@@ -47,7 +47,7 @@ | |||
47 | 47 | ||
48 | #include "igbvf.h" | 48 | #include "igbvf.h" |
49 | 49 | ||
50 | #define DRV_VERSION "2.0.2-k" | 50 | #define DRV_VERSION "2.4.0-k" |
51 | char igbvf_driver_name[] = "igbvf"; | 51 | char igbvf_driver_name[] = "igbvf"; |
52 | const char igbvf_driver_version[] = DRV_VERSION; | 52 | const char igbvf_driver_version[] = DRV_VERSION; |
53 | static const char igbvf_driver_string[] = | 53 | static const char igbvf_driver_string[] = |