Pass correct phy_interface_t into phy_connect
The Ethernet driver passes a value into phy_connect() that determines
whether an internal delay inside the PHY is needed. If it's needed, the
value also specifies whether it is required on the TX line, RX line or
both. The Ethernet driver gets this information from the platform_data
for the specific Ethernet interface.
Previously, it passed in "no internal delay needed" which is incorrect
for all our platforms. (We always require an internal delay in the PHY).
It only worked because the Atheros/QCA PHY driver ignored this value and
always enabled the internal delay.
This change is required by the SpaceCast platform. It uses a Marvell
PHY, and the respective driver interprets the value for phy_interface_t
in the correct way.
Change-Id: I94967367ca9201dadb389a724e61bcb99933ea2d
1 file changed