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

Configure Feed

Select the types of activity you want to include in your feed.

net: phy: mxl-gpy: add support for MxL86211C

MxL86211C is a smaller and more efficient version of the GPY211C.
Add the PHY ID and phy_driver instance to the mxl-gpy driver.

Signed-off-by: Chad Monroe <chad@monroe.io>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/cabf3559d6511bed6b8a925f540e3162efc20f6b.1763818120.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Chad Monroe and committed by
Jakub Kicinski
9d844da6 ce28e333

+24
+24
drivers/net/phy/mxl-gpy.c
··· 30 30 #define PHY_ID_GPY241B 0x67C9DE40 31 31 #define PHY_ID_GPY241BM 0x67C9DE80 32 32 #define PHY_ID_GPY245B 0x67C9DEC0 33 + #define PHY_ID_MXL86211C 0xC1335400 33 34 34 35 #define PHY_CTL1 0x13 35 36 #define PHY_CTL1_MDICD BIT(3) ··· 1269 1268 .get_wol = gpy_get_wol, 1270 1269 .set_loopback = gpy_loopback, 1271 1270 }, 1271 + { 1272 + PHY_ID_MATCH_MODEL(PHY_ID_MXL86211C), 1273 + .name = "Maxlinear Ethernet MxL86211C", 1274 + .get_features = genphy_c45_pma_read_abilities, 1275 + .config_init = gpy_config_init, 1276 + .probe = gpy_probe, 1277 + .suspend = genphy_suspend, 1278 + .resume = genphy_resume, 1279 + .config_aneg = gpy_config_aneg, 1280 + .aneg_done = genphy_c45_aneg_done, 1281 + .read_status = gpy_read_status, 1282 + .config_intr = gpy_config_intr, 1283 + .handle_interrupt = gpy_handle_interrupt, 1284 + .set_wol = gpy_set_wol, 1285 + .get_wol = gpy_get_wol, 1286 + .set_loopback = gpy_loopback, 1287 + .led_brightness_set = gpy_led_brightness_set, 1288 + .led_hw_is_supported = gpy_led_hw_is_supported, 1289 + .led_hw_control_get = gpy_led_hw_control_get, 1290 + .led_hw_control_set = gpy_led_hw_control_set, 1291 + .led_polarity_set = gpy_led_polarity_set, 1292 + }, 1272 1293 }; 1273 1294 module_phy_driver(gpy_drivers); 1274 1295 ··· 1307 1284 {PHY_ID_MATCH_MODEL(PHY_ID_GPY241B)}, 1308 1285 {PHY_ID_MATCH_MODEL(PHY_ID_GPY241BM)}, 1309 1286 {PHY_ID_MATCH_MODEL(PHY_ID_GPY245B)}, 1287 + {PHY_ID_MATCH_MODEL(PHY_ID_MXL86211C)}, 1310 1288 { } 1311 1289 }; 1312 1290 MODULE_DEVICE_TABLE(mdio, gpy_tbl);