Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311357
b: refs/heads/master
c: b6138ed
h: refs/heads/master
i:
  311355: 185a3b5
v: v3
  • Loading branch information
Jacob Keller authored and David S. Miller committed Jun 17, 2012
1 parent ffedb9d commit 19da100
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5481388bc705de27ca37241a42c6612c86f2cc3b
refs/heads/master: b6138ed60457ef1e9150692f6790eb4a2a696308
13 changes: 11 additions & 2 deletions trunk/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ void ixgbe_ptp_start_cyclecounter(struct ixgbe_adapter *adapter)
{
struct ixgbe_hw *hw = &adapter->hw;
u32 incval = 0;
u32 timinca = 0;
u32 shift = 0;
u32 cycle_speed;
unsigned long flags;
Expand All @@ -730,8 +731,16 @@ void ixgbe_ptp_start_cyclecounter(struct ixgbe_adapter *adapter)
break;
}

/* Bail if the cycle speed didn't change */
if (adapter->cycle_speed == cycle_speed)
/*
* grab the current TIMINCA value from the register so that it can be
* double checked. If the register value has been cleared, it must be
* reset to the correct value for generating a cyclecounter. If
* TIMINCA is zero, the SYSTIME registers do not increment at all.
*/
timinca = IXGBE_READ_REG(hw, IXGBE_TIMINCA);

/* Bail if the cycle speed didn't change and TIMINCA is non-zero */
if (adapter->cycle_speed == cycle_speed && timinca)
return;

/* disable the SDP clock out */
Expand Down

0 comments on commit 19da100

Please sign in to comment.