Commit 77370df3 authored by Andre Guedes's avatar Andre Guedes Committed by Tony Nguyen

igc: Rename IGC_TSYNCTXCTL_VALID macro

Rename the IGC_TSYNCTXCTL_VALID macro to IGC_TSYNCTXCTL_TXTT_0 so it
matches the datasheet.
Signed-off-by: default avatarAndre Guedes <andre.guedes@intel.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 43546211
...@@ -409,7 +409,7 @@ ...@@ -409,7 +409,7 @@
#define IGC_IMIREXT_SIZE_BP 0x00001000 /* Packet size bypass */ #define IGC_IMIREXT_SIZE_BP 0x00001000 /* Packet size bypass */
/* Time Sync Transmit Control bit definitions */ /* Time Sync Transmit Control bit definitions */
#define IGC_TSYNCTXCTL_VALID 0x00000001 /* Tx timestamp valid */ #define IGC_TSYNCTXCTL_TXTT_0 0x00000001 /* Tx timestamp reg 0 valid */
#define IGC_TSYNCTXCTL_ENABLED 0x00000010 /* enable Tx timestamping */ #define IGC_TSYNCTXCTL_ENABLED 0x00000010 /* enable Tx timestamping */
#define IGC_TSYNCTXCTL_MAX_ALLOWED_DLY_MASK 0x0000F000 /* max delay */ #define IGC_TSYNCTXCTL_MAX_ALLOWED_DLY_MASK 0x0000F000 /* max delay */
#define IGC_TSYNCTXCTL_SYNC_COMP_ERR 0x20000000 /* sync err */ #define IGC_TSYNCTXCTL_SYNC_COMP_ERR 0x20000000 /* sync err */
......
...@@ -429,7 +429,7 @@ static void igc_ptp_tx_work(struct work_struct *work) ...@@ -429,7 +429,7 @@ static void igc_ptp_tx_work(struct work_struct *work)
} }
tsynctxctl = rd32(IGC_TSYNCTXCTL); tsynctxctl = rd32(IGC_TSYNCTXCTL);
if (tsynctxctl & IGC_TSYNCTXCTL_VALID) if (tsynctxctl & IGC_TSYNCTXCTL_TXTT_0)
igc_ptp_tx_hwtstamp(adapter); igc_ptp_tx_hwtstamp(adapter);
else else
/* reschedule to check later */ /* reschedule to check later */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment