Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: phy: adin1100: add PHY IDs of adin1110/adin2111

Add additional PHY IDs for the internal PHYs of adin1110 and adin2111.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Alexandru Tachici and committed by
Paolo Abeni
875b718a cec9d59e

+6 -1
+6 -1
drivers/net/phy/adin1100.c
··· 15 15 #include <linux/property.h> 16 16 17 17 #define PHY_ID_ADIN1100 0x0283bc81 18 + #define PHY_ID_ADIN1110 0x0283bc91 19 + #define PHY_ID_ADIN2111 0x0283bca1 18 20 19 21 #define ADIN_FORCED_MODE 0x8000 20 22 #define ADIN_FORCED_MODE_EN BIT(0) ··· 267 265 268 266 static struct phy_driver adin_driver[] = { 269 267 { 270 - PHY_ID_MATCH_MODEL(PHY_ID_ADIN1100), 268 + .phy_id = PHY_ID_ADIN1100, 269 + .phy_id_mask = 0xffffffcf, 271 270 .name = "ADIN1100", 272 271 .get_features = adin_get_features, 273 272 .soft_reset = adin_soft_reset, ··· 287 284 288 285 static struct mdio_device_id __maybe_unused adin_tbl[] = { 289 286 { PHY_ID_MATCH_MODEL(PHY_ID_ADIN1100) }, 287 + { PHY_ID_MATCH_MODEL(PHY_ID_ADIN1110) }, 288 + { PHY_ID_MATCH_MODEL(PHY_ID_ADIN2111) }, 290 289 { } 291 290 }; 292 291