aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorIoana Ciornei <ioana.ciornei@nxp.com>2020-11-01 14:51:12 +0200
committerJakub Kicinski <kuba@kernel.org>2020-11-05 16:32:39 -0800
commit87de1f058aacc8ce4be94e36a38f77b860914a76 (patch)
treebcd4de6786726f938f3a78776dced475c47f7ba4 /include/linux/phy.h
parentnet: phy: davicom: remove the use of .ack_interrupt() (diff)
downloadlinux-dev-87de1f058aacc8ce4be94e36a38f77b860914a76.tar.xz
linux-dev-87de1f058aacc8ce4be94e36a38f77b860914a76.zip
net: phy: add genphy_handle_interrupt_no_ack()
It seems there are cases where the interrupts are handled by another entity (ie an IRQ controller embedded inside the PHY) and do not need any other interraction from phylib. For this kind of PHYs, like the RTL8366RB, add the genphy_handle_interrupt_no_ack() function which just triggers the link state machine. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 566b39f6cd64..4f158d6352ae 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -1510,6 +1510,7 @@ int genphy_suspend(struct phy_device *phydev);
int genphy_resume(struct phy_device *phydev);
int genphy_loopback(struct phy_device *phydev, bool enable);
int genphy_soft_reset(struct phy_device *phydev);
+irqreturn_t genphy_handle_interrupt_no_ack(struct phy_device *phydev);
static inline int genphy_config_aneg(struct phy_device *phydev)
{