Commit dc9d38ce authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller

net: phy: mdio-gpio: Add phy_ignore_ta_mask to platform data

The Marvell 6390 Ethernet switch family does not perform MDIO
turnaround correctly. Many hardware MDIO bus masters don't care about
this, but the bitbangging implementation in Linux does by default. Add
phy_ignore_ta_mask to the platform data so that the bitbangging code
can be told which devices are known to get TA wrong.

v2
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 04fa26ba
...@@ -130,8 +130,10 @@ static struct mii_bus *mdio_gpio_bus_init(struct device *dev, ...@@ -130,8 +130,10 @@ static struct mii_bus *mdio_gpio_bus_init(struct device *dev,
else else
strncpy(new_bus->id, "gpio", MII_BUS_ID_SIZE); strncpy(new_bus->id, "gpio", MII_BUS_ID_SIZE);
if (pdata) if (pdata) {
new_bus->phy_mask = pdata->phy_mask; new_bus->phy_mask = pdata->phy_mask;
new_bus->phy_ignore_ta_mask = pdata->phy_ignore_ta_mask;
}
dev_set_drvdata(dev, new_bus); dev_set_drvdata(dev, new_bus);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
struct mdio_gpio_platform_data { struct mdio_gpio_platform_data {
u32 phy_mask; u32 phy_mask;
u32 phy_ignore_ta_mask;
}; };
#endif /* __LINUX_MDIO_GPIO_PDATA_H */ #endif /* __LINUX_MDIO_GPIO_PDATA_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment