Skip to content

Commit dfdc771

Browse files
committed
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 <[email protected]>
2 parents 3796c3c + ac28b41 commit dfdc771

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

drivers/net/ethernet/intel/igb/igb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ struct igb_adapter {
489489
struct timecounter tc;
490490
u32 tx_hwtstamp_timeouts;
491491
u32 rx_hwtstamp_cleared;
492+
bool pps_sys_wrap_on;
492493

493494
struct ptp_pin_desc sdp_config[IGB_N_SDP];
494495
struct {

drivers/net/ethernet/intel/igb/igb_ethtool.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2704,8 +2704,8 @@ static int igb_rxnfc_write_etype_filter(struct igb_adapter *adapter,
27042704
return 0;
27052705
}
27062706

2707-
int igb_rxnfc_write_vlan_prio_filter(struct igb_adapter *adapter,
2708-
struct igb_nfc_filter *input)
2707+
static int igb_rxnfc_write_vlan_prio_filter(struct igb_adapter *adapter,
2708+
struct igb_nfc_filter *input)
27092709
{
27102710
struct e1000_hw *hw = &adapter->hw;
27112711
u8 vlan_priority;

drivers/net/ethernet/intel/igb/igb_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#include "igb.h"
5959

6060
#define MAJ 5
61-
#define MIN 3
61+
#define MIN 4
6262
#define BUILD 0
6363
#define DRV_VERSION __stringify(MAJ) "." __stringify(MIN) "." \
6464
__stringify(BUILD) "-k"

drivers/net/ethernet/intel/igb/igb_ptp.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ static int igb_ptp_feature_enable_i210(struct ptp_clock_info *ptp,
591591
tsim |= TSINTR_SYS_WRAP;
592592
else
593593
tsim &= ~TSINTR_SYS_WRAP;
594+
igb->pps_sys_wrap_on = !!on;
594595
wr32(E1000_TSIM, tsim);
595596
spin_unlock_irqrestore(&igb->tmreg_lock, flags);
596597
return 0;
@@ -1235,7 +1236,9 @@ void igb_ptp_reset(struct igb_adapter *adapter)
12351236
case e1000_i211:
12361237
wr32(E1000_TSAUXC, 0x0);
12371238
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));
12391242
wr32(E1000_IMS, E1000_IMS_TS);
12401243
break;
12411244
default:

drivers/net/ethernet/intel/igbvf/netdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
#include "igbvf.h"
4949

50-
#define DRV_VERSION "2.0.2-k"
50+
#define DRV_VERSION "2.4.0-k"
5151
char igbvf_driver_name[] = "igbvf";
5252
const char igbvf_driver_version[] = DRV_VERSION;
5353
static const char igbvf_driver_string[] =

0 commit comments

Comments
 (0)