Skip to content

Commit d7f2ab2

Browse files
Matt Carlsondavem330
authored andcommitted
tg3: Fix eee preprocessor naming
This patch fixes a preprocessor naming bug for one of the EEE registers. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 21a00ab commit d7f2ab2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/tg3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7829,7 +7829,7 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
78297829
TG3_CPMU_DBTMR1_LNKIDLE_2047US);
78307830

78317831
tw32_f(TG3_CPMU_EEE_DBTMR2,
7832-
TG3_CPMU_DBTMR1_APE_TX_2047US |
7832+
TG3_CPMU_DBTMR2_APE_TX_2047US |
78337833
TG3_CPMU_DBTMR2_TXIDXEQ_2047US);
78347834
}
78357835

drivers/net/tg3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@
11061106
#define TG3_CPMU_DBTMR1_PCIEXIT_2047US 0x07ff0000
11071107
#define TG3_CPMU_DBTMR1_LNKIDLE_2047US 0x000070ff
11081108
#define TG3_CPMU_EEE_DBTMR2 0x000036b8
1109-
#define TG3_CPMU_DBTMR1_APE_TX_2047US 0x07ff0000
1109+
#define TG3_CPMU_DBTMR2_APE_TX_2047US 0x07ff0000
11101110
#define TG3_CPMU_DBTMR2_TXIDXEQ_2047US 0x000070ff
11111111
#define TG3_CPMU_EEE_LNKIDL_CTRL 0x000036bc
11121112
#define TG3_CPMU_EEE_LNKIDL_PCIE_NL0 0x01000000

0 commit comments

Comments
 (0)