summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/microchip_t1.c
diff options
context:
space:
mode:
authorArun Ramadoss <arun.ramadoss@microchip.com>2022-04-23 17:47:27 +0200
committerPaolo Abeni <pabeni@redhat.com>2022-04-26 10:08:59 +0200
commitfb0a43f5bd454dfae94aeb293b32669c6ef83b37 (patch)
tree9834da4c2ab714a796f2f0f0b515374958e6ea9f /drivers/net/phy/microchip_t1.c
parentwwan_hwsim: Avoid flush_scheduled_work() usage (diff)
downloadlinux-fb0a43f5bd454dfae94aeb293b32669c6ef83b37.tar.xz
linux-fb0a43f5bd454dfae94aeb293b32669c6ef83b37.zip
net: phy: LAN937x: add interrupt support for link detection
Added the config_intr and handle_interrupt for the LAN937x phy which is same as the LAN87xx phy. Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/20220423154727.29052-1-arun.ramadoss@microchip.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/phy/microchip_t1.c')
-rw-r--r--drivers/net/phy/microchip_t1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/phy/microchip_t1.c b/drivers/net/phy/microchip_t1.c
index 796fbcb7dafe..d4c93d59bc53 100644
--- a/drivers/net/phy/microchip_t1.c
+++ b/drivers/net/phy/microchip_t1.c
@@ -792,6 +792,8 @@ static struct phy_driver microchip_t1_phy_driver[] = {
.flags = PHY_POLL_CABLE_TEST,
.features = PHY_BASIC_T1_FEATURES,
.config_init = lan87xx_config_init,
+ .config_intr = lan87xx_phy_config_intr,
+ .handle_interrupt = lan87xx_handle_interrupt,
.suspend = genphy_suspend,
.resume = genphy_resume,
.config_aneg = lan87xx_config_aneg,