Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18272
b: refs/heads/master
c: a4d00f1
h: refs/heads/master
v: v3
  • Loading branch information
Kumar Gala authored and Jeff Garzik committed Jan 12, 2006
1 parent 08b2406 commit 6c66004
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 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: 1d5326774c9245fef77334a9e0f11cd4f8aa7b4e
refs/heads/master: a4d00f179fcec7065fe5742e9cebd6500886070f
2 changes: 1 addition & 1 deletion trunk/drivers/net/phy/mdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ int mdiobus_register(struct mii_bus *bus)

phydev->dev.parent = bus->dev;
phydev->dev.bus = &mdio_bus_type;
sprintf(phydev->dev.bus_id, "phy%d:%d", bus->id, i);
snprintf(phydev->dev.bus_id, BUS_ID_SIZE, PHY_ID_FMT, bus->id, i);

phydev->bus = bus;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/phy/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
*/
void phy_print_status(struct phy_device *phydev)
{
pr_info("%s: Link is %s", phydev->dev.bus_id,
pr_info("PHY: %s - Link is %s", phydev->dev.bus_id,
phydev->link ? "Up" : "Down");
if (phydev->link)
printk(" - %d/%s", phydev->speed,
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/linux/phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@

#define PHY_MAX_ADDR 32

/* Used when trying to connect to a specific phy (mii bus id:phy device id) */
#define PHY_ID_FMT "%x:%02x"

/* The Bus class for PHYs. Devices which provide access to
* PHYs should register using this structure */
struct mii_bus {
Expand Down

0 comments on commit 6c66004

Please sign in to comment.