]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell: Only configure RGMII delays when using RGMII
authorAndrew Lunn <andrew@lunn.ch>
Tue, 31 Oct 2017 19:31:28 +0000 (20:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 02:26:08 +0000 (11:26 +0900)
commitfaad23352da74f297534b6d7ed5c141c42d9f339
tree077b5bd3eabd726e9edaa8e78021a7eaa13ed559
parent3b197fb7b1cfd456d9cef363126ef9eda0971895
net: phy: marvell: Only configure RGMII delays when using RGMII

The fix b8bf393d203c ("net: phy: marvell: logical vs bitwise OR typo")
uncovered another bug in the Marvell PHY driver, which broke the
Marvell OpenRD platform. It relies on the bootloader configuring the
RGMII delays and does not specify a phy-mode in its device tree.  The
PHY driver should only configure RGMII delays if the phy mode
indicates it is using RGMII. Without anything in device tree, the
mv643xx Ethernet driver defaults to GMII.

Fixes: b8bf393d203c ("net: phy: marvell: logical vs bitwise OR typo")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c