]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit40a42f4a9cdf967c063382c1b902f0cd95e97318
tree8e9b760d3e00391ba697e9ea6f7362d6da55ee05
parentadea8dadc1fff5d58bb59f7348698671e70fb209
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: f37915cbe87e ("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