]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mdio-gpio: Propagate mii_bus.phy_ignore_ta_mask
authorBert Vermeulen <bert@biot.com>
Wed, 13 May 2015 11:35:39 +0000 (13:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 May 2015 02:35:13 +0000 (22:35 -0400)
This also changes mii_bus.phy_mask to u32 for consistency.

Signed-off-by: Bert Vermeulen <bert@biot.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-gpio.c
include/linux/mdio-gpio.h

index 53d18150f4e291bb4bb047a18a9877d3a82a08f4..7dc21e56a7aa805c42f1a1624a704d807efa08f5 100644 (file)
@@ -158,6 +158,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;
 
index 66c30a763b108c7fe096009b344320fc1c282325..11f00cdabe3d463b8355c4cd3c328b218976d507 100644 (file)
@@ -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);