]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: broadcom: Fix RGMII delays configuration for BCM54210E
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 3 Oct 2019 18:43:51 +0000 (11:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Oct 2019 21:12:48 +0000 (14:12 -0700)
commit0a44d7b747410d2bfe72c6a17cff96ade1f31fa1
tree47660c85d3db6e8a80211ca0dc6b64f7788c286a
parentf25d7a6226695c2f5cbc7eba9ffa112384de8c4e
net: phy: broadcom: Fix RGMII delays configuration for BCM54210E

Commit 7ec332f3bf8a ("net: phy: broadcom: add support for
BCM54210E") added support for BCM54210E but also unconditionally cleared
the RXC to RXD skew and the TXD to TXC skew, thus only making
PHY_INTERFACE_MODE_RGMII a possible configuration. Use
bcm54xx_config_clock_delay() which correctly sets the registers
depending on the 4 possible PHY interface values that exist for RGMII.

Fixes: 7ec332f3bf8a ("net: phy: broadcom: add support for BCM54210E")
Reported-by: Manasa Mudireddy <manasa.mudireddy@broadcom.com>
Reported-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c