Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265303
b: refs/heads/master
c: 19e2f6f
h: refs/heads/master
i:
  265301: f8a8bb5
  265299: cf699d4
  265295: 47a48d6
v: v3
  • Loading branch information
David S. Miller committed Aug 16, 2011
1 parent 38064a9 commit c77de7b
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef37d38a1fe78ba627b8178af02df31e59b18896
refs/heads/master: 19e2f6fe9601ca5c846b7163e6d6d00f87b34760
3 changes: 3 additions & 0 deletions trunk/drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ config MII

source "drivers/net/phy/Kconfig"

config SUNGEM_PHY
tristate

#
# Ethernet
#
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ obj-$(CONFIG_VIRTIO_NET) += virtio_net.o

obj-$(CONFIG_WIMAX) += wimax/
obj-$(CONFIG_CAIF) += caif/

obj-$(CONFIG_SUNGEM_PHY) += sungem_phy.o
1 change: 0 additions & 1 deletion trunk/drivers/net/ethernet/sun/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ obj-$(CONFIG_HAPPYMEAL) += sunhme.o
obj-$(CONFIG_SUNQE) += sunqe.o
obj-$(CONFIG_SUNBMAC) += sunbmac.o
obj-$(CONFIG_SUNGEM) += sungem.o
obj-$(CONFIG_SUNGEM_PHY) += sungem_phy.o
obj-$(CONFIG_CASSINI) += cassini.o
obj-$(CONFIG_SUNVNET) += sunvnet.o
obj-$(CONFIG_NIU) += niu.o
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/sun/sungem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@ static void gem_init_phy(struct gem *gp)
if (gp->phy_type == phy_mii_mdio0 ||
gp->phy_type == phy_mii_mdio1) {
/* Reset and detect MII PHY */
mii_phy_probe(&gp->phy_mii, gp->mii_phy_addr);
sungem_phy_probe(&gp->phy_mii, gp->mii_phy_addr);

/* Init PHY */
if (gp->phy_mii.def && gp->phy_mii.def->ops->init)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/toshiba/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ obj-$(CONFIG_GELIC_NET) += ps3_gelic.o
gelic_wireless-$(CONFIG_GELIC_WIRELESS) += ps3_gelic_wireless.o
ps3_gelic-objs += ps3_gelic_net.o $(gelic_wireless-y)
spidernet-y += spider_net.o spider_net_ethtool.o
obj-$(CONFIG_SPIDER_NET) += spidernet.o ethernet/sun/sungem_phy.o
obj-$(CONFIG_SPIDER_NET) += spidernet.o
obj-$(CONFIG_TC35815) += tc35815.o
4 changes: 2 additions & 2 deletions trunk/drivers/net/ethernet/toshiba/spider_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ spider_net_setup_aneg(struct spider_net_card *card)
if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_THALF))
advertise |= SUPPORTED_1000baseT_Half;

mii_phy_probe(phy, phy->mii_id);
sungem_phy_probe(phy, phy->mii_id);
phy->def->ops->setup_aneg(phy, advertise);

}
Expand Down Expand Up @@ -2120,7 +2120,7 @@ spider_net_setup_phy(struct spider_net_card *card)
unsigned short id;
id = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR);
if (id != 0x0000 && id != 0xffff) {
if (!mii_phy_probe(phy, phy->mii_id)) {
if (!sungem_phy_probe(phy, phy->mii_id)) {
pr_info("Found %s.\n", phy->def->name);
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ static struct mii_phy_def* mii_phy_table[] = {
NULL
};

int mii_phy_probe(struct mii_phy *phy, int mii_id)
int sungem_phy_probe(struct mii_phy *phy, int mii_id)
{
int rc;
u32 id;
Expand Down Expand Up @@ -1195,6 +1195,5 @@ int mii_phy_probe(struct mii_phy *phy, int mii_id)
return -ENODEV;
}

EXPORT_SYMBOL(mii_phy_probe);
EXPORT_SYMBOL(sungem_phy_probe);
MODULE_LICENSE("GPL");

2 changes: 1 addition & 1 deletion trunk/include/linux/sungem_phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct mii_phy
/* Pass in a struct mii_phy with dev, mdio_read and mdio_write
* filled, the remaining fields will be filled on return
*/
extern int mii_phy_probe(struct mii_phy *phy, int mii_id);
extern int sungem_phy_probe(struct mii_phy *phy, int mii_id);


/* MII definitions missing from mii.h */
Expand Down

0 comments on commit c77de7b

Please sign in to comment.