[PATCH net-next v3 4/7] net: phy: adin1100: Add separate driver entries for ADIN1110/ADIN2111

From: Iustin Stolniceanu

Date: Mon Nov 23 2026 - 06:59:51 EST


The ADIN1100, ADIN1110 and ADIN2111 report different model numbers in
bits [9:4] of PHY_ID2 (0x8, 0x9 and 0xa), with the silicon revision in
bits [3:0]. A single phy_driver entry with the 0xffffffcf mask currently
binds all three by ignoring bits [5:4] of the model number.

Use one phy_driver entry per device, matched with PHY_ID_MATCH_EXACT(),
so that, as before, only revision 1 of each device binds to this
driver. The old mask also matched model 0xb, which no datasheet lists,
so no known device is affected. This allows device specific callbacks
to be set in a following patch. The callbacks are unchanged, so this is
not a functional change apart from the reported driver name.

Signed-off-by: Iustin Stolniceanu <iustin.stolniceanu@xxxxxxxxxx>
Reviewed-by: Alvin Šipraga <alvin.sipraga@xxxxxxxxxx>
---
drivers/net/phy/adin1100.c | 35 +++++++++++++++++++++++++++++++++--
1 file changed, 33 insertions(+), 2 deletions(-)

diff --git a/drivers/net/phy/adin1100.c b/drivers/net/phy/adin1100.c
index f845b440aaef..a69c3228961e 100644
--- a/drivers/net/phy/adin1100.c
+++ b/drivers/net/phy/adin1100.c
@@ -322,8 +322,7 @@ static int adin_probe(struct phy_device *phydev)

static struct phy_driver adin_driver[] = {
{
- .phy_id = PHY_ID_ADIN1100,
- .phy_id_mask = 0xffffffcf,
+ PHY_ID_MATCH_EXACT(PHY_ID_ADIN1100),
.name = "ADIN1100",
.get_features = adin_get_features,
.soft_reset = adin_soft_reset,
@@ -338,6 +337,38 @@ static struct phy_driver adin_driver[] = {
.get_sqi = adin_get_sqi,
.get_sqi_max = adin_get_sqi_max,
},
+ {
+ PHY_ID_MATCH_EXACT(PHY_ID_ADIN1110),
+ .name = "ADIN1110",
+ .get_features = adin_get_features,
+ .soft_reset = adin_soft_reset,
+ .probe = adin_probe,
+ .config_aneg = adin_config_aneg,
+ .read_status = adin_read_status,
+ .config_intr = adin_config_intr,
+ .handle_interrupt = adin_phy_handle_interrupt,
+ .set_loopback = adin_set_loopback,
+ .suspend = adin_suspend,
+ .resume = adin_resume,
+ .get_sqi = adin_get_sqi,
+ .get_sqi_max = adin_get_sqi_max,
+ },
+ {
+ PHY_ID_MATCH_EXACT(PHY_ID_ADIN2111),
+ .name = "ADIN2111",
+ .get_features = adin_get_features,
+ .soft_reset = adin_soft_reset,
+ .probe = adin_probe,
+ .config_aneg = adin_config_aneg,
+ .read_status = adin_read_status,
+ .config_intr = adin_config_intr,
+ .handle_interrupt = adin_phy_handle_interrupt,
+ .set_loopback = adin_set_loopback,
+ .suspend = adin_suspend,
+ .resume = adin_resume,
+ .get_sqi = adin_get_sqi,
+ .get_sqi_max = adin_get_sqi_max,
+ },
};

module_phy_driver(adin_driver);
--
2.43.0