Commit ecd5a323 authored by Alexander Stein's avatar Alexander Stein Committed by David S. Miller

phy/micrel: Change phy_id_mask for KSZ8721

There are KSZ8721 PHYs with phy_id 0x00221619. In order to detect them
as PHY_ID_KSZ8001 compatible while staying different to PHY_ID_KSZ9021
ignore the last two bits when matching PHY_ID
Signed-off-by: default avatarAlexander Stein <alexanders83@web.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d1dc934a
...@@ -869,7 +869,7 @@ static struct phy_driver ksphy_driver[] = { ...@@ -869,7 +869,7 @@ static struct phy_driver ksphy_driver[] = {
}, { }, {
.phy_id = PHY_ID_KSZ8001, .phy_id = PHY_ID_KSZ8001,
.name = "Micrel KSZ8001 or KS8721", .name = "Micrel KSZ8001 or KS8721",
.phy_id_mask = 0x00ffffff, .phy_id_mask = 0x00fffffc,
.features = (PHY_BASIC_FEATURES | SUPPORTED_Pause), .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause),
.flags = PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT, .flags = PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT,
.driver_data = &ksz8041_type, .driver_data = &ksz8041_type,
...@@ -993,7 +993,7 @@ MODULE_LICENSE("GPL"); ...@@ -993,7 +993,7 @@ MODULE_LICENSE("GPL");
static struct mdio_device_id __maybe_unused micrel_tbl[] = { static struct mdio_device_id __maybe_unused micrel_tbl[] = {
{ PHY_ID_KSZ9021, 0x000ffffe }, { PHY_ID_KSZ9021, 0x000ffffe },
{ PHY_ID_KSZ9031, MICREL_PHY_ID_MASK }, { PHY_ID_KSZ9031, MICREL_PHY_ID_MASK },
{ PHY_ID_KSZ8001, 0x00ffffff }, { PHY_ID_KSZ8001, 0x00fffffc },
{ PHY_ID_KS8737, MICREL_PHY_ID_MASK }, { PHY_ID_KS8737, MICREL_PHY_ID_MASK },
{ PHY_ID_KSZ8021, 0x00ffffff }, { PHY_ID_KSZ8021, 0x00ffffff },
{ PHY_ID_KSZ8031, 0x00ffffff }, { PHY_ID_KSZ8031, 0x00ffffff },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment