Skip to content

Commit

Permalink
net: phy: microchip: update LAN88xx phy ID and phy ID mask.
Browse files Browse the repository at this point in the history
update LAN88xx phy ID and phy ID mask because the existing code conflicts with the LAN8742 phy.

The current phy IDs on the available hardware.
        LAN8742 0x0007C130, 0x0007C131
        LAN88xx 0x0007C132

Signed-off-by: Yuiko Oshino <yuiko.oshino@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Yuiko Oshino authored and David S. Miller committed May 9, 2022
1 parent 613707e commit e078286
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/phy/microchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ static int lan88xx_config_aneg(struct phy_device *phydev)

static struct phy_driver microchip_phy_driver[] = {
{
.phy_id = 0x0007c130,
.phy_id_mask = 0xfffffff0,
.phy_id = 0x0007c132,
.phy_id_mask = 0xfffffff2,
.name = "Microchip LAN88xx",

/* PHY_GBIT_FEATURES */
Expand All @@ -369,7 +369,7 @@ static struct phy_driver microchip_phy_driver[] = {
module_phy_driver(microchip_phy_driver);

static struct mdio_device_id __maybe_unused microchip_tbl[] = {
{ 0x0007c130, 0xfffffff0 },
{ 0x0007c132, 0xfffffff2 },
{ }
};

Expand Down

0 comments on commit e078286

Please sign in to comment.