aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/Kconfig3
-rw-r--r--drivers/net/Makefile2
-rw-r--r--drivers/net/ethernet/sun/Makefile1
-rw-r--r--drivers/net/ethernet/sun/sungem.c2
-rw-r--r--drivers/net/ethernet/toshiba/Makefile2
-rw-r--r--drivers/net/ethernet/toshiba/spider_net.c4
-rw-r--r--drivers/net/sungem_phy.c (renamed from drivers/net/ethernet/sun/sungem_phy.c)5
-rw-r--r--include/linux/sungem_phy.h2
8 files changed, 12 insertions, 9 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 31d87929c1ad..ef6b6bee11da 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -186,6 +186,9 @@ config MII
186 186
187source "drivers/net/phy/Kconfig" 187source "drivers/net/phy/Kconfig"
188 188
189config SUNGEM_PHY
190 tristate
191
189# 192#
190# Ethernet 193# Ethernet
191# 194#
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index 9cb47bb3a816..c33009b49608 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -75,3 +75,5 @@ obj-$(CONFIG_VIRTIO_NET) += virtio_net.o
75 75
76obj-$(CONFIG_WIMAX) += wimax/ 76obj-$(CONFIG_WIMAX) += wimax/
77obj-$(CONFIG_CAIF) += caif/ 77obj-$(CONFIG_CAIF) += caif/
78
79obj-$(CONFIG_SUNGEM_PHY) += sungem_phy.o
diff --git a/drivers/net/ethernet/sun/Makefile b/drivers/net/ethernet/sun/Makefile
index 6e25dad6070e..1e620ff88eba 100644
--- a/drivers/net/ethernet/sun/Makefile
+++ b/drivers/net/ethernet/sun/Makefile
@@ -6,7 +6,6 @@ obj-$(CONFIG_HAPPYMEAL) += sunhme.o
6obj-$(CONFIG_SUNQE) += sunqe.o 6obj-$(CONFIG_SUNQE) += sunqe.o
7obj-$(CONFIG_SUNBMAC) += sunbmac.o 7obj-$(CONFIG_SUNBMAC) += sunbmac.o
8obj-$(CONFIG_SUNGEM) += sungem.o 8obj-$(CONFIG_SUNGEM) += sungem.o
9obj-$(CONFIG_SUNGEM_PHY) += sungem_phy.o
10obj-$(CONFIG_CASSINI) += cassini.o 9obj-$(CONFIG_CASSINI) += cassini.o
11obj-$(CONFIG_SUNVNET) += sunvnet.o 10obj-$(CONFIG_SUNVNET) += sunvnet.o
12obj-$(CONFIG_NIU) += niu.o 11obj-$(CONFIG_NIU) += niu.o
diff --git a/drivers/net/ethernet/sun/sungem.c b/drivers/net/ethernet/sun/sungem.c
index 0f13c5daf3fb..fb9885dd36da 100644
--- a/drivers/net/ethernet/sun/sungem.c
+++ b/drivers/net/ethernet/sun/sungem.c
@@ -1721,7 +1721,7 @@ static void gem_init_phy(struct gem *gp)
1721 if (gp->phy_type == phy_mii_mdio0 || 1721 if (gp->phy_type == phy_mii_mdio0 ||
1722 gp->phy_type == phy_mii_mdio1) { 1722 gp->phy_type == phy_mii_mdio1) {
1723 /* Reset and detect MII PHY */ 1723 /* Reset and detect MII PHY */
1724 mii_phy_probe(&gp->phy_mii, gp->mii_phy_addr); 1724 sungem_phy_probe(&gp->phy_mii, gp->mii_phy_addr);
1725 1725
1726 /* Init PHY */ 1726 /* Init PHY */
1727 if (gp->phy_mii.def && gp->phy_mii.def->ops->init) 1727 if (gp->phy_mii.def && gp->phy_mii.def->ops->init)
diff --git a/drivers/net/ethernet/toshiba/Makefile b/drivers/net/ethernet/toshiba/Makefile
index 71d861f55add..a5069008435b 100644
--- a/drivers/net/ethernet/toshiba/Makefile
+++ b/drivers/net/ethernet/toshiba/Makefile
@@ -6,5 +6,5 @@ obj-$(CONFIG_GELIC_NET) += ps3_gelic.o
6gelic_wireless-$(CONFIG_GELIC_WIRELESS) += ps3_gelic_wireless.o 6gelic_wireless-$(CONFIG_GELIC_WIRELESS) += ps3_gelic_wireless.o
7ps3_gelic-objs += ps3_gelic_net.o $(gelic_wireless-y) 7ps3_gelic-objs += ps3_gelic_net.o $(gelic_wireless-y)
8spidernet-y += spider_net.o spider_net_ethtool.o 8spidernet-y += spider_net.o spider_net_ethtool.o
9obj-$(CONFIG_SPIDER_NET) += spidernet.o ethernet/sun/sungem_phy.o 9obj-$(CONFIG_SPIDER_NET) += spidernet.o
10obj-$(CONFIG_TC35815) += tc35815.o 10obj-$(CONFIG_TC35815) += tc35815.o
diff --git a/drivers/net/ethernet/toshiba/spider_net.c b/drivers/net/ethernet/toshiba/spider_net.c
index 1ff3491c8240..af345dbd1210 100644
--- a/drivers/net/ethernet/toshiba/spider_net.c
+++ b/drivers/net/ethernet/toshiba/spider_net.c
@@ -196,7 +196,7 @@ spider_net_setup_aneg(struct spider_net_card *card)
196 if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_THALF)) 196 if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_THALF))
197 advertise |= SUPPORTED_1000baseT_Half; 197 advertise |= SUPPORTED_1000baseT_Half;
198 198
199 mii_phy_probe(phy, phy->mii_id); 199 sungem_phy_probe(phy, phy->mii_id);
200 phy->def->ops->setup_aneg(phy, advertise); 200 phy->def->ops->setup_aneg(phy, advertise);
201 201
202} 202}
@@ -2120,7 +2120,7 @@ spider_net_setup_phy(struct spider_net_card *card)
2120 unsigned short id; 2120 unsigned short id;
2121 id = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); 2121 id = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR);
2122 if (id != 0x0000 && id != 0xffff) { 2122 if (id != 0x0000 && id != 0xffff) {
2123 if (!mii_phy_probe(phy, phy->mii_id)) { 2123 if (!sungem_phy_probe(phy, phy->mii_id)) {
2124 pr_info("Found %s.\n", phy->def->name); 2124 pr_info("Found %s.\n", phy->def->name);
2125 break; 2125 break;
2126 } 2126 }
diff --git a/drivers/net/ethernet/sun/sungem_phy.c b/drivers/net/sungem_phy.c
index db99c229aa91..58f13adaa549 100644
--- a/drivers/net/ethernet/sun/sungem_phy.c
+++ b/drivers/net/sungem_phy.c
@@ -1156,7 +1156,7 @@ static struct mii_phy_def* mii_phy_table[] = {
1156 NULL 1156 NULL
1157}; 1157};
1158 1158
1159int mii_phy_probe(struct mii_phy *phy, int mii_id) 1159int sungem_phy_probe(struct mii_phy *phy, int mii_id)
1160{ 1160{
1161 int rc; 1161 int rc;
1162 u32 id; 1162 u32 id;
@@ -1195,6 +1195,5 @@ fail:
1195 return -ENODEV; 1195 return -ENODEV;
1196} 1196}
1197 1197
1198EXPORT_SYMBOL(mii_phy_probe); 1198EXPORT_SYMBOL(sungem_phy_probe);
1199MODULE_LICENSE("GPL"); 1199MODULE_LICENSE("GPL");
1200
diff --git a/include/linux/sungem_phy.h b/include/linux/sungem_phy.h
index af02f9479cbb..bd9be9f59d3a 100644
--- a/include/linux/sungem_phy.h
+++ b/include/linux/sungem_phy.h
@@ -61,7 +61,7 @@ struct mii_phy
61/* Pass in a struct mii_phy with dev, mdio_read and mdio_write 61/* Pass in a struct mii_phy with dev, mdio_read and mdio_write
62 * filled, the remaining fields will be filled on return 62 * filled, the remaining fields will be filled on return
63 */ 63 */
64extern int mii_phy_probe(struct mii_phy *phy, int mii_id); 64extern int sungem_phy_probe(struct mii_phy *phy, int mii_id);
65 65
66 66
67/* MII definitions missing from mii.h */ 67/* MII definitions missing from mii.h */