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

net: phy: aquantia: add AQR813 PHY ID

Aquantia AQR813 is the Octal Port variant of the AQR113. Add PHY ID for
it to provide support for it.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Christian Marangi and committed by
David S. Miller
6d47302a ea7f3cfa

+21
+21
drivers/net/phy/aquantia/aquantia_main.c
··· 28 28 #define PHY_ID_AQR412 0x03a1b712 29 29 #define PHY_ID_AQR113 0x31c31c40 30 30 #define PHY_ID_AQR113C 0x31c31c12 31 + #define PHY_ID_AQR813 0x31c31cb2 31 32 32 33 #define MDIO_PHYXS_VEND_IF_STATUS 0xe812 33 34 #define MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK GENMASK(7, 3) ··· 962 961 .get_stats = aqr107_get_stats, 963 962 .link_change_notify = aqr107_link_change_notify, 964 963 }, 964 + { 965 + PHY_ID_MATCH_MODEL(PHY_ID_AQR813), 966 + .name = "Aquantia AQR813", 967 + .probe = aqr107_probe, 968 + .get_rate_matching = aqr107_get_rate_matching, 969 + .config_init = aqr107_config_init, 970 + .config_aneg = aqr_config_aneg, 971 + .config_intr = aqr_config_intr, 972 + .handle_interrupt = aqr_handle_interrupt, 973 + .read_status = aqr107_read_status, 974 + .get_tunable = aqr107_get_tunable, 975 + .set_tunable = aqr107_set_tunable, 976 + .suspend = aqr107_suspend, 977 + .resume = aqr107_resume, 978 + .get_sset_count = aqr107_get_sset_count, 979 + .get_strings = aqr107_get_strings, 980 + .get_stats = aqr107_get_stats, 981 + .link_change_notify = aqr107_link_change_notify, 982 + }, 965 983 }; 966 984 967 985 module_phy_driver(aqr_driver); ··· 999 979 { PHY_ID_MATCH_MODEL(PHY_ID_AQR412) }, 1000 980 { PHY_ID_MATCH_MODEL(PHY_ID_AQR113) }, 1001 981 { PHY_ID_MATCH_MODEL(PHY_ID_AQR113C) }, 982 + { PHY_ID_MATCH_MODEL(PHY_ID_AQR813) }, 1002 983 { } 1003 984 }; 1004 985