Skip to content

Commit 1068ec7

Browse files
atenartdavem330
authored andcommitted
net: mvpp2: fix the synchronization module bypass macro name
The macro defining the bit to toggle to bypass or not the synchronization module is wrongly named. Writing 1 will disable bypass. This patch s/MVPP22_CTRL4_SYNC_BYPASS/MVPP22_CTRL4_SYNC_BYPASS_DIS/. Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com> Tested-by: Marcin Wojtas <mw@semihalf.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 81b6630 commit 1068ec7

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/ethernet/marvell

1 file changed

+2
-2
lines changed

drivers/net/ethernet/marvell/mvpp2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346
#define MVPP22_GMAC_CTRL_4_REG 0x90
347347
#define MVPP22_CTRL4_EXT_PIN_GMII_SEL BIT(0)
348348
#define MVPP22_CTRL4_DP_CLK_SEL BIT(5)
349-
#define MVPP22_CTRL4_SYNC_BYPASS BIT(6)
349+
#define MVPP22_CTRL4_SYNC_BYPASS_DIS BIT(6)
350350
#define MVPP22_CTRL4_QSGMII_BYPASS_ACTIVE BIT(7)
351351

352352
/* Per-port XGMAC registers. PPv2.2 only, only for GOP port 0,
@@ -4269,7 +4269,7 @@ static void mvpp22_port_mii_set(struct mvpp2_port *port)
42694269
else
42704270
val &= ~MVPP22_CTRL4_EXT_PIN_GMII_SEL;
42714271
val &= ~MVPP22_CTRL4_DP_CLK_SEL;
4272-
val |= MVPP22_CTRL4_SYNC_BYPASS;
4272+
val |= MVPP22_CTRL4_SYNC_BYPASS_DIS;
42734273
val |= MVPP22_CTRL4_QSGMII_BYPASS_ACTIVE;
42744274
writel(val, port->base + MVPP22_GMAC_CTRL_4_REG);
42754275
}

0 commit comments

Comments
 (0)