net: dp83869: Fix RGMII internal delay configuration
authorDaniel Gorsulowski <daniel.gorsulowski@esd.eu>
Wed, 26 Aug 2020 05:00:14 +0000 (07:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2020 14:13:28 +0000 (07:13 -0700)
commit2e1ec861a605d1d116f8c774f45e9f6a2b593cbb
tree8e9b760d3e00391ba697e9ea6f7362d6da55ee05
parent9f13457377907fa253aef560e1a37e1ca4197f9b
net: dp83869: Fix RGMII internal delay configuration

The RGMII control register at 0x32 indicates the states for the bits
RGMII_TX_CLK_DELAY and RGMII_RX_CLK_DELAY as follows:

  RGMII Transmit/Receive Clock Delay
    0x0 = RGMII transmit clock is shifted with respect to transmit/receive data.
    0x1 = RGMII transmit clock is aligned with respect to transmit/receive data.

This commit fixes the inversed behavior of these bits

Fixes: 736b25afe284 ("net: dp83869: Add RGMII internal delay configuration")
Signed-off-by: Daniel Gorsulowski <daniel.gorsulowski@esd.eu>
Acked-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83869.c