aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/networking/phy.txt2
-rw-r--r--drivers/net/ethernet/adi/bfin_mac.c6
-rw-r--r--drivers/net/ethernet/aeroflex/greth.c6
-rw-r--r--drivers/net/ethernet/broadcom/tg3.c6
-rw-r--r--drivers/net/ethernet/cadence/macb.c6
-rw-r--r--drivers/net/ethernet/dnet.c6
-rw-r--r--drivers/net/ethernet/ethoc.c6
-rw-r--r--drivers/net/ethernet/faraday/ftgmac100.c6
-rw-r--r--drivers/net/ethernet/freescale/fec_main.c6
-rw-r--r--drivers/net/ethernet/freescale/fs_enet/mii-fec.c7
-rw-r--r--drivers/net/ethernet/marvell/mvmdio.c6
-rw-r--r--drivers/net/ethernet/rdc/r6040.c6
-rw-r--r--drivers/net/ethernet/xilinx/xilinx_emaclite.c13
-rw-r--r--drivers/net/phy/mdio-sun4i.c6
14 files changed, 1 insertions, 87 deletions
diff --git a/Documentation/networking/phy.txt b/Documentation/networking/phy.txt
index e602c6f347df..3544c98401fd 100644
--- a/Documentation/networking/phy.txt
+++ b/Documentation/networking/phy.txt
@@ -48,7 +48,7 @@ The MDIO bus
48 time, so it is safe for them to block, waiting for an interrupt to signal 48 time, so it is safe for them to block, waiting for an interrupt to signal
49 the operation is complete 49 the operation is complete
50 50
51 2) A reset function is necessary. This is used to return the bus to an 51 2) A reset function is optional. This is used to return the bus to an
52 initialized state. 52 initialized state.
53 53
54 3) A probe function is needed. This function should set up anything the bus 54 3) A probe function is needed. This function should set up anything the bus
diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c
index 95779b6b7394..7ae74d450e8f 100644
--- a/drivers/net/ethernet/adi/bfin_mac.c
+++ b/drivers/net/ethernet/adi/bfin_mac.c
@@ -307,11 +307,6 @@ static int bfin_mdiobus_write(struct mii_bus *bus, int phy_addr, int regnum,
307 return bfin_mdio_poll(); 307 return bfin_mdio_poll();
308} 308}
309 309
310static int bfin_mdiobus_reset(struct mii_bus *bus)
311{
312 return 0;
313}
314
315static void bfin_mac_adjust_link(struct net_device *dev) 310static void bfin_mac_adjust_link(struct net_device *dev)
316{ 311{
317 struct bfin_mac_local *lp = netdev_priv(dev); 312 struct bfin_mac_local *lp = netdev_priv(dev);
@@ -1824,7 +1819,6 @@ static int bfin_mii_bus_probe(struct platform_device *pdev)
1824 goto out_err_alloc; 1819 goto out_err_alloc;
1825 miibus->read = bfin_mdiobus_read; 1820 miibus->read = bfin_mdiobus_read;
1826 miibus->write = bfin_mdiobus_write; 1821 miibus->write = bfin_mdiobus_write;
1827 miibus->reset = bfin_mdiobus_reset;
1828 1822
1829 miibus->parent = &pdev->dev; 1823 miibus->parent = &pdev->dev;
1830 miibus->name = "bfin_mii_bus"; 1824 miibus->name = "bfin_mii_bus";
diff --git a/drivers/net/ethernet/aeroflex/greth.c b/drivers/net/ethernet/aeroflex/greth.c
index c5d75e7aeeb6..23578dfee249 100644
--- a/drivers/net/ethernet/aeroflex/greth.c
+++ b/drivers/net/ethernet/aeroflex/greth.c
@@ -1213,11 +1213,6 @@ static int greth_mdio_write(struct mii_bus *bus, int phy, int reg, u16 val)
1213 return 0; 1213 return 0;
1214} 1214}
1215 1215
1216static int greth_mdio_reset(struct mii_bus *bus)
1217{
1218 return 0;
1219}
1220
1221static void greth_link_change(struct net_device *dev) 1216static void greth_link_change(struct net_device *dev)
1222{ 1217{
1223 struct greth_private *greth = netdev_priv(dev); 1218 struct greth_private *greth = netdev_priv(dev);
@@ -1332,7 +1327,6 @@ static int greth_mdio_init(struct greth_private *greth)
1332 snprintf(greth->mdio->id, MII_BUS_ID_SIZE, "%s-%d", greth->mdio->name, greth->irq); 1327 snprintf(greth->mdio->id, MII_BUS_ID_SIZE, "%s-%d", greth->mdio->name, greth->irq);
1333 greth->mdio->read = greth_mdio_read; 1328 greth->mdio->read = greth_mdio_read;
1334 greth->mdio->write = greth_mdio_write; 1329 greth->mdio->write = greth_mdio_write;
1335 greth->mdio->reset = greth_mdio_reset;
1336 greth->mdio->priv = greth; 1330 greth->mdio->priv = greth;
1337 1331
1338 greth->mdio->irq = greth->mdio_irqs; 1332 greth->mdio->irq = greth->mdio_irqs;
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
index 37422af9ef13..1ac461a7d949 100644
--- a/drivers/net/ethernet/broadcom/tg3.c
+++ b/drivers/net/ethernet/broadcom/tg3.c
@@ -1401,11 +1401,6 @@ static int tg3_mdio_write(struct mii_bus *bp, int mii_id, int reg, u16 val)
1401 return ret; 1401 return ret;
1402} 1402}
1403 1403
1404static int tg3_mdio_reset(struct mii_bus *bp)
1405{
1406 return 0;
1407}
1408
1409static void tg3_mdio_config_5785(struct tg3 *tp) 1404static void tg3_mdio_config_5785(struct tg3 *tp)
1410{ 1405{
1411 u32 val; 1406 u32 val;
@@ -1542,7 +1537,6 @@ static int tg3_mdio_init(struct tg3 *tp)
1542 tp->mdio_bus->parent = &tp->pdev->dev; 1537 tp->mdio_bus->parent = &tp->pdev->dev;
1543 tp->mdio_bus->read = &tg3_mdio_read; 1538 tp->mdio_bus->read = &tg3_mdio_read;
1544 tp->mdio_bus->write = &tg3_mdio_write; 1539 tp->mdio_bus->write = &tg3_mdio_write;
1545 tp->mdio_bus->reset = &tg3_mdio_reset;
1546 tp->mdio_bus->phy_mask = ~(1 << tp->phy_addr); 1540 tp->mdio_bus->phy_mask = ~(1 << tp->phy_addr);
1547 tp->mdio_bus->irq = &tp->mdio_irq[0]; 1541 tp->mdio_bus->irq = &tp->mdio_irq[0];
1548 1542
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
index 6116887d2880..ca97005e24b4 100644
--- a/drivers/net/ethernet/cadence/macb.c
+++ b/drivers/net/ethernet/cadence/macb.c
@@ -199,11 +199,6 @@ static int macb_mdio_write(struct mii_bus *bus, int mii_id, int regnum,
199 return 0; 199 return 0;
200} 200}
201 201
202static int macb_mdio_reset(struct mii_bus *bus)
203{
204 return 0;
205}
206
207/** 202/**
208 * macb_set_tx_clk() - Set a clock to a new frequency 203 * macb_set_tx_clk() - Set a clock to a new frequency
209 * @clk Pointer to the clock to change 204 * @clk Pointer to the clock to change
@@ -375,7 +370,6 @@ int macb_mii_init(struct macb *bp)
375 bp->mii_bus->name = "MACB_mii_bus"; 370 bp->mii_bus->name = "MACB_mii_bus";
376 bp->mii_bus->read = &macb_mdio_read; 371 bp->mii_bus->read = &macb_mdio_read;
377 bp->mii_bus->write = &macb_mdio_write; 372 bp->mii_bus->write = &macb_mdio_write;
378 bp->mii_bus->reset = &macb_mdio_reset;
379 snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", 373 snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
380 bp->pdev->name, bp->pdev->id); 374 bp->pdev->name, bp->pdev->id);
381 bp->mii_bus->priv = bp; 375 bp->mii_bus->priv = bp;
diff --git a/drivers/net/ethernet/dnet.c b/drivers/net/ethernet/dnet.c
index 8a79a32a5674..e9b0faba3078 100644
--- a/drivers/net/ethernet/dnet.c
+++ b/drivers/net/ethernet/dnet.c
@@ -170,11 +170,6 @@ static int dnet_mdio_write(struct mii_bus *bus, int mii_id, int regnum,
170 return 0; 170 return 0;
171} 171}
172 172
173static int dnet_mdio_reset(struct mii_bus *bus)
174{
175 return 0;
176}
177
178static void dnet_handle_link_change(struct net_device *dev) 173static void dnet_handle_link_change(struct net_device *dev)
179{ 174{
180 struct dnet *bp = netdev_priv(dev); 175 struct dnet *bp = netdev_priv(dev);
@@ -322,7 +317,6 @@ static int dnet_mii_init(struct dnet *bp)
322 bp->mii_bus->name = "dnet_mii_bus"; 317 bp->mii_bus->name = "dnet_mii_bus";
323 bp->mii_bus->read = &dnet_mdio_read; 318 bp->mii_bus->read = &dnet_mdio_read;
324 bp->mii_bus->write = &dnet_mdio_write; 319 bp->mii_bus->write = &dnet_mdio_write;
325 bp->mii_bus->reset = &dnet_mdio_reset;
326 320
327 snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", 321 snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
328 bp->pdev->name, bp->pdev->id); 322 bp->pdev->name, bp->pdev->id);
diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c
index 55e0fa03dc90..8b70ca7e342b 100644
--- a/drivers/net/ethernet/ethoc.c
+++ b/drivers/net/ethernet/ethoc.c
@@ -660,11 +660,6 @@ static int ethoc_mdio_write(struct mii_bus *bus, int phy, int reg, u16 val)
660 return -EBUSY; 660 return -EBUSY;
661} 661}
662 662
663static int ethoc_mdio_reset(struct mii_bus *bus)
664{
665 return 0;
666}
667
668static void ethoc_mdio_poll(struct net_device *dev) 663static void ethoc_mdio_poll(struct net_device *dev)
669{ 664{
670} 665}
@@ -1210,7 +1205,6 @@ static int ethoc_probe(struct platform_device *pdev)
1210 priv->mdio->name, pdev->id); 1205 priv->mdio->name, pdev->id);
1211 priv->mdio->read = ethoc_mdio_read; 1206 priv->mdio->read = ethoc_mdio_read;
1212 priv->mdio->write = ethoc_mdio_write; 1207 priv->mdio->write = ethoc_mdio_write;
1213 priv->mdio->reset = ethoc_mdio_reset;
1214 priv->mdio->priv = priv; 1208 priv->mdio->priv = priv;
1215 1209
1216 priv->mdio->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL); 1210 priv->mdio->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL);
diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c
index c11ecbc98149..68069eabc4f8 100644
--- a/drivers/net/ethernet/faraday/ftgmac100.c
+++ b/drivers/net/ethernet/faraday/ftgmac100.c
@@ -940,11 +940,6 @@ static int ftgmac100_mdiobus_write(struct mii_bus *bus, int phy_addr,
940 return -EIO; 940 return -EIO;
941} 941}
942 942
943static int ftgmac100_mdiobus_reset(struct mii_bus *bus)
944{
945 return 0;
946}
947
948/****************************************************************************** 943/******************************************************************************
949 * struct ethtool_ops functions 944 * struct ethtool_ops functions
950 *****************************************************************************/ 945 *****************************************************************************/
@@ -1262,7 +1257,6 @@ static int ftgmac100_probe(struct platform_device *pdev)
1262 priv->mii_bus->priv = netdev; 1257 priv->mii_bus->priv = netdev;
1263 priv->mii_bus->read = ftgmac100_mdiobus_read; 1258 priv->mii_bus->read = ftgmac100_mdiobus_read;
1264 priv->mii_bus->write = ftgmac100_mdiobus_write; 1259 priv->mii_bus->write = ftgmac100_mdiobus_write;
1265 priv->mii_bus->reset = ftgmac100_mdiobus_reset;
1266 priv->mii_bus->irq = priv->phy_irq; 1260 priv->mii_bus->irq = priv->phy_irq;
1267 1261
1268 for (i = 0; i < PHY_MAX_ADDR; i++) 1262 for (i = 0; i < PHY_MAX_ADDR; i++)
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index f9f8a589cdef..e19315eaf2dd 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -1255,11 +1255,6 @@ static int fec_enet_mdio_write(struct mii_bus *bus, int mii_id, int regnum,
1255 return 0; 1255 return 0;
1256} 1256}
1257 1257
1258static int fec_enet_mdio_reset(struct mii_bus *bus)
1259{
1260 return 0;
1261}
1262
1263static int fec_enet_mii_probe(struct net_device *ndev) 1258static int fec_enet_mii_probe(struct net_device *ndev)
1264{ 1259{
1265 struct fec_enet_private *fep = netdev_priv(ndev); 1260 struct fec_enet_private *fep = netdev_priv(ndev);
@@ -1384,7 +1379,6 @@ static int fec_enet_mii_init(struct platform_device *pdev)
1384 fep->mii_bus->name = "fec_enet_mii_bus"; 1379 fep->mii_bus->name = "fec_enet_mii_bus";
1385 fep->mii_bus->read = fec_enet_mdio_read; 1380 fep->mii_bus->read = fec_enet_mdio_read;
1386 fep->mii_bus->write = fec_enet_mdio_write; 1381 fep->mii_bus->write = fec_enet_mdio_write;
1387 fep->mii_bus->reset = fec_enet_mdio_reset;
1388 snprintf(fep->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", 1382 snprintf(fep->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
1389 pdev->name, fep->dev_id + 1); 1383 pdev->name, fep->dev_id + 1);
1390 fep->mii_bus->priv = fep; 1384 fep->mii_bus->priv = fep;
diff --git a/drivers/net/ethernet/freescale/fs_enet/mii-fec.c b/drivers/net/ethernet/freescale/fs_enet/mii-fec.c
index 7e69c983d12a..ebf5d6429a8d 100644
--- a/drivers/net/ethernet/freescale/fs_enet/mii-fec.c
+++ b/drivers/net/ethernet/freescale/fs_enet/mii-fec.c
@@ -95,12 +95,6 @@ static int fs_enet_fec_mii_write(struct mii_bus *bus, int phy_id, int location,
95 95
96} 96}
97 97
98static int fs_enet_fec_mii_reset(struct mii_bus *bus)
99{
100 /* nothing here - for now */
101 return 0;
102}
103
104static struct of_device_id fs_enet_mdio_fec_match[]; 98static struct of_device_id fs_enet_mdio_fec_match[];
105static int fs_enet_mdio_probe(struct platform_device *ofdev) 99static int fs_enet_mdio_probe(struct platform_device *ofdev)
106{ 100{
@@ -128,7 +122,6 @@ static int fs_enet_mdio_probe(struct platform_device *ofdev)
128 new_bus->name = "FEC MII Bus"; 122 new_bus->name = "FEC MII Bus";
129 new_bus->read = &fs_enet_fec_mii_read; 123 new_bus->read = &fs_enet_fec_mii_read;
130 new_bus->write = &fs_enet_fec_mii_write; 124 new_bus->write = &fs_enet_fec_mii_write;
131 new_bus->reset = &fs_enet_fec_mii_reset;
132 125
133 ret = of_address_to_resource(ofdev->dev.of_node, 0, &res); 126 ret = of_address_to_resource(ofdev->dev.of_node, 0, &res);
134 if (ret) 127 if (ret)
diff --git a/drivers/net/ethernet/marvell/mvmdio.c b/drivers/net/ethernet/marvell/mvmdio.c
index fd409d76b811..b161a525fc5b 100644
--- a/drivers/net/ethernet/marvell/mvmdio.c
+++ b/drivers/net/ethernet/marvell/mvmdio.c
@@ -167,11 +167,6 @@ out:
167 return ret; 167 return ret;
168} 168}
169 169
170static int orion_mdio_reset(struct mii_bus *bus)
171{
172 return 0;
173}
174
175static irqreturn_t orion_mdio_err_irq(int irq, void *dev_id) 170static irqreturn_t orion_mdio_err_irq(int irq, void *dev_id)
176{ 171{
177 struct orion_mdio_dev *dev = dev_id; 172 struct orion_mdio_dev *dev = dev_id;
@@ -209,7 +204,6 @@ static int orion_mdio_probe(struct platform_device *pdev)
209 bus->name = "orion_mdio_bus"; 204 bus->name = "orion_mdio_bus";
210 bus->read = orion_mdio_read; 205 bus->read = orion_mdio_read;
211 bus->write = orion_mdio_write; 206 bus->write = orion_mdio_write;
212 bus->reset = orion_mdio_reset;
213 snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", 207 snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii",
214 dev_name(&pdev->dev)); 208 dev_name(&pdev->dev));
215 bus->parent = &pdev->dev; 209 bus->parent = &pdev->dev;
diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c
index 819b74cefd64..cd045ecb9816 100644
--- a/drivers/net/ethernet/rdc/r6040.c
+++ b/drivers/net/ethernet/rdc/r6040.c
@@ -270,11 +270,6 @@ static int r6040_mdiobus_write(struct mii_bus *bus, int phy_addr,
270 return r6040_phy_write(ioaddr, phy_addr, reg, value); 270 return r6040_phy_write(ioaddr, phy_addr, reg, value);
271} 271}
272 272
273static int r6040_mdiobus_reset(struct mii_bus *bus)
274{
275 return 0;
276}
277
278static void r6040_free_txbufs(struct net_device *dev) 273static void r6040_free_txbufs(struct net_device *dev)
279{ 274{
280 struct r6040_private *lp = netdev_priv(dev); 275 struct r6040_private *lp = netdev_priv(dev);
@@ -1191,7 +1186,6 @@ static int r6040_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1191 lp->mii_bus->priv = dev; 1186 lp->mii_bus->priv = dev;
1192 lp->mii_bus->read = r6040_mdiobus_read; 1187 lp->mii_bus->read = r6040_mdiobus_read;
1193 lp->mii_bus->write = r6040_mdiobus_write; 1188 lp->mii_bus->write = r6040_mdiobus_write;
1194 lp->mii_bus->reset = r6040_mdiobus_reset;
1195 lp->mii_bus->name = "r6040_eth_mii"; 1189 lp->mii_bus->name = "r6040_eth_mii";
1196 snprintf(lp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", 1190 snprintf(lp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
1197 dev_name(&pdev->dev), card_idx); 1191 dev_name(&pdev->dev), card_idx);
diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
index 58756617644f..0d87c67a5ff7 100644
--- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c
+++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
@@ -795,18 +795,6 @@ static int xemaclite_mdio_write(struct mii_bus *bus, int phy_id, int reg,
795} 795}
796 796
797/** 797/**
798 * xemaclite_mdio_reset - Reset the mdio bus.
799 * @bus: Pointer to the MII bus
800 *
801 * This function is required(?) as per Documentation/networking/phy.txt.
802 * There is no reset in this device; this function always returns 0.
803 */
804static int xemaclite_mdio_reset(struct mii_bus *bus)
805{
806 return 0;
807}
808
809/**
810 * xemaclite_mdio_setup - Register mii_bus for the Emaclite device 798 * xemaclite_mdio_setup - Register mii_bus for the Emaclite device
811 * @lp: Pointer to the Emaclite device private data 799 * @lp: Pointer to the Emaclite device private data
812 * @ofdev: Pointer to OF device structure 800 * @ofdev: Pointer to OF device structure
@@ -861,7 +849,6 @@ static int xemaclite_mdio_setup(struct net_local *lp, struct device *dev)
861 bus->name = "Xilinx Emaclite MDIO"; 849 bus->name = "Xilinx Emaclite MDIO";
862 bus->read = xemaclite_mdio_read; 850 bus->read = xemaclite_mdio_read;
863 bus->write = xemaclite_mdio_write; 851 bus->write = xemaclite_mdio_write;
864 bus->reset = xemaclite_mdio_reset;
865 bus->parent = dev; 852 bus->parent = dev;
866 bus->irq = lp->mdio_irqs; /* preallocated IRQ table */ 853 bus->irq = lp->mdio_irqs; /* preallocated IRQ table */
867 854
diff --git a/drivers/net/phy/mdio-sun4i.c b/drivers/net/phy/mdio-sun4i.c
index 9367acc84fbb..15bc7f9ea224 100644
--- a/drivers/net/phy/mdio-sun4i.c
+++ b/drivers/net/phy/mdio-sun4i.c
@@ -90,11 +90,6 @@ static int sun4i_mdio_write(struct mii_bus *bus, int mii_id, int regnum,
90 return 0; 90 return 0;
91} 91}
92 92
93static int sun4i_mdio_reset(struct mii_bus *bus)
94{
95 return 0;
96}
97
98static int sun4i_mdio_probe(struct platform_device *pdev) 93static int sun4i_mdio_probe(struct platform_device *pdev)
99{ 94{
100 struct device_node *np = pdev->dev.of_node; 95 struct device_node *np = pdev->dev.of_node;
@@ -110,7 +105,6 @@ static int sun4i_mdio_probe(struct platform_device *pdev)
110 bus->name = "sun4i_mii_bus"; 105 bus->name = "sun4i_mii_bus";
111 bus->read = &sun4i_mdio_read; 106 bus->read = &sun4i_mdio_read;
112 bus->write = &sun4i_mdio_write; 107 bus->write = &sun4i_mdio_write;
113 bus->reset = &sun4i_mdio_reset;
114 snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(&pdev->dev)); 108 snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(&pdev->dev));
115 bus->parent = &pdev->dev; 109 bus->parent = &pdev->dev;
116 110