Skip to contentSkip to conversation

mdio-gpio: Propagate mii_bus.phy_ignore_ta_mask

PATCH Applied Bert Vermeulen 2 participants 2 messages May 13, 2015 – May 15, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mdio-gpio: Propagate mii_bus.phy_ignore_ta_mask

This also changes mii_bus.phy_mask to u32 for consistency.

---
This goes on top of Florian Fainelli's patch:
net: phy: Add phy_ignore_ta_mask to account for broken turn-around

 drivers/net/phy/mdio-gpio.c | 1 +
 include/linux/mdio-gpio.h   | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/net/phy/mdio-gpio.c +1 -0
index c0b7c56..859866a 100644
@@ -154,6 +154,7 @@ static struct mii_bus *mdio_gpio_bus_init(struct device *dev,
 	new_bus->name = "GPIO Bitbanged MDIO",
 
 	new_bus->phy_mask = pdata->phy_mask;
+	new_bus->phy_ignore_ta_mask = pdata->phy_ignore_ta_mask;
 	new_bus->irq = pdata->irqs;
 	new_bus->parent = dev;
 
include/linux/mdio-gpio.h +2 -1
index 66c30a7..11f00cd 100644
@@ -23,7 +23,8 @@ struct mdio_gpio_platform_data {
 	bool mdio_active_low;
 	bool mdo_active_low;
 
-	unsigned int phy_mask;
+	u32 phy_mask;
+	u32 phy_ignore_ta_mask;
 	int irqs[PHY_MAX_ADDR];
 	/* reset callback */
 	int (*reset)(struct mii_bus *bus);
Signature · 1 line
1.9.1