netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mdio-gpio: Propagate mii_bus.phy_ignore_ta_mask
@ 2015-05-13 11:35 Bert Vermeulen
  2015-05-15  2:35 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Bert Vermeulen @ 2015-05-13 11:35 UTC (permalink / raw)
  To: f.fainelli, netdev, jogo; +Cc: Bert Vermeulen

This also changes mii_bus.phy_mask to u32 for consistency.

Signed-off-by: Bert Vermeulen <bert@biot.com>
---
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(-)

diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c
index c0b7c56..859866a 100644
--- a/drivers/net/phy/mdio-gpio.c
+++ b/drivers/net/phy/mdio-gpio.c
@@ -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;
 
diff --git a/include/linux/mdio-gpio.h b/include/linux/mdio-gpio.h
index 66c30a7..11f00cd 100644
--- a/include/linux/mdio-gpio.h
+++ b/include/linux/mdio-gpio.h
@@ -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);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mdio-gpio: Propagate mii_bus.phy_ignore_ta_mask
  2015-05-13 11:35 [PATCH] mdio-gpio: Propagate mii_bus.phy_ignore_ta_mask Bert Vermeulen
@ 2015-05-15  2:35 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-05-15  2:35 UTC (permalink / raw)
  To: bert; +Cc: f.fainelli, netdev, jogo

From: Bert Vermeulen <bert@biot.com>
Date: Wed, 13 May 2015 13:35:39 +0200

> This also changes mii_bus.phy_mask to u32 for consistency.
> 
> Signed-off-by: Bert Vermeulen <bert@biot.com>

Applied, thanks Bert.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-15  2:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-13 11:35 [PATCH] mdio-gpio: Propagate mii_bus.phy_ignore_ta_mask Bert Vermeulen
2015-05-15  2:35 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).