From 488e0b71d750dc07fc1622ac52ef5af60300cc3b Mon Sep 17 00:00:00 2001 From: Jan Sondhauss Date: Tue, 9 Oct 2018 14:23:05 +0200 Subject: [PATCH] phy: marvell: add mv88e6321 internal phys to the marvell phy driver This enables interrupt driven link change detection. Signed-off-by: Jan Sondhauss --- drivers/net/phy/marvell.c | 18 ++++++++++++++++++ include/linux/marvell_phy.h | 1 + 2 files changed, 19 insertions(+) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index eba652a4c1d8..eff527761214 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -3733,6 +3733,24 @@ static struct phy_driver marvell_drivers[] = { .led_hw_control_set = m88e1318_led_hw_control_set, .led_hw_control_get = m88e1318_led_hw_control_get, }, + { + .phy_id = MARVELL_PHY_ID_88E6321, + .phy_id_mask = MARVELL_PHY_ID_MASK, + .name = "Marvell 88E6321", + .features = PHY_BASIC_FEATURES, + .probe = marvell_probe, + .config_aneg = &genphy_config_aneg, + .config_init = &genphy_config_init, + .aneg_done = &marvell_aneg_done, + .read_status = &marvell_read_status, + .config_intr = &marvell_config_intr, + .handle_interrupt = marvell_handle_interrupt, + .resume = &genphy_resume, + .suspend = &genphy_suspend, + .get_sset_count = marvell_get_sset_count, + .get_strings = marvell_get_strings, + .get_stats = marvell_get_stats, + }, }; module_phy_driver(marvell_drivers); diff --git a/include/linux/marvell_phy.h b/include/linux/marvell_phy.h index 9b54c4f0677f..e61f5cfcdc71 100644 --- a/include/linux/marvell_phy.h +++ b/include/linux/marvell_phy.h @@ -26,6 +26,7 @@ #define MARVELL_PHY_ID_88E2110 0x002b09b0 #define MARVELL_PHY_ID_88X2222 0x01410f10 #define MARVELL_PHY_ID_88Q2110 0x002b0980 +#define MARVELL_PHY_ID_88E6321 0x01410c00 /* Marvel 88E1111 in Finisar SFP module with modified PHY ID */ #define MARVELL_PHY_ID_88E1111_FINISAR 0x01ff0cc0