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

phy: Add Vitesse 8211 phy ID

Phy is compatible with Vitesse 8221.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Michal Simek and committed by
David S. Miller
5a1cebd8 2a8626d1

+15
+15
drivers/net/phy/vitesse.c
··· 56 56 57 57 #define PHY_ID_VSC8244 0x000fc6c0 58 58 #define PHY_ID_VSC8221 0x000fc550 59 + #define PHY_ID_VSC8211 0x000fc4b0 59 60 60 61 MODULE_DESCRIPTION("Vitesse PHY driver"); 61 62 MODULE_AUTHOR("Kriston Carson"); ··· 176 175 .ack_interrupt = &vsc824x_ack_interrupt, 177 176 .config_intr = &vsc82xx_config_intr, 178 177 .driver = { .owner = THIS_MODULE,}, 178 + }, { 179 + /* Vitesse 8211 */ 180 + .phy_id = PHY_ID_VSC8211, 181 + .phy_id_mask = 0x000ffff0, 182 + .name = "Vitesse VSC8211", 183 + .features = PHY_GBIT_FEATURES, 184 + .flags = PHY_HAS_INTERRUPT, 185 + .config_init = &vsc8221_config_init, 186 + .config_aneg = &genphy_config_aneg, 187 + .read_status = &genphy_read_status, 188 + .ack_interrupt = &vsc824x_ack_interrupt, 189 + .config_intr = &vsc82xx_config_intr, 190 + .driver = { .owner = THIS_MODULE,}, 179 191 } }; 180 192 181 193 static int __init vsc82xx_init(void) ··· 209 195 static struct mdio_device_id __maybe_unused vitesse_tbl[] = { 210 196 { PHY_ID_VSC8244, 0x000fffc0 }, 211 197 { PHY_ID_VSC8221, 0x000ffff0 }, 198 + { PHY_ID_VSC8211, 0x000ffff0 }, 212 199 { } 213 200 }; 214 201