Skip to content

Commit

Permalink
Merge branch 'for_linus' of master.kernel.org:/pub/scm/linux/kernel/g…
Browse files Browse the repository at this point in the history
…it/galak/powerpc

* 'for_linus' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc:
  phy: Fix phy_id for Vitesse 824x PHY
  • Loading branch information
Linus Torvalds committed Jun 28, 2007
2 parents edd5cd4 + 5f708dd commit 0471448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion drivers/net/phy/mdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ static int mdio_bus_match(struct device *dev, struct device_driver *drv)
struct phy_device *phydev = to_phy_device(dev);
struct phy_driver *phydrv = to_phy_driver(drv);

return (phydrv->phy_id == (phydev->phy_id & phydrv->phy_id_mask));
return ((phydrv->phy_id & phydrv->phy_id_mask) ==
(phydev->phy_id & phydrv->phy_id_mask));
}

/* Suspend and resume. Copied from platform_suspend and
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/phy/vitesse.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static int vsc824x_config_intr(struct phy_device *phydev)

/* Vitesse 824x */
static struct phy_driver vsc8244_driver = {
.phy_id = 0x000fc6c2,
.phy_id = 0x000fc6c0,
.name = "Vitesse VSC8244",
.phy_id_mask = 0x000fffc0,
.features = PHY_GBIT_FEATURES,
Expand Down

0 comments on commit 0471448

Please sign in to comment.