net: phy: check for implementation of both callbacks in phy_drv_supports_irq
Subsystems (3)
Heiner Kallweit
maintainerPATCH 1/1 net: phy: check for implementation of both callbacks in phy_drv_supports_irq
Now that the icplus driver has been fixed all PHY drivers supporting interrupts have both callbacks (config_intr and ack_interrupt) implemented - as it should be. Therefore phy_drv_supports_irq() can be changed now to check for both callbacks being implemented.
--- drivers/net/phy/phy_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/phy_device.c +1 -1
@@ -2122,7 +2122,7 @@ static void of_set_phy_eee_broken(struct phy_device *phydev)static bool phy_drv_supports_irq (struct phy_driver *phydrv) { -return phydrv->config_intr || phydrv->ack_interrupt; +return phydrv->config_intr && phydrv->ack_interrupt; }/**
Signature · 1 line
2.19.1
Quoted 6 lines · Heiner Kallweit
Now that the icplus driver has been fixed all PHY drivers supporting interrupts have both callbacks (
config_intrandack_interrupt) implemented - as it should be. Thereforephy_drv_supports_irq()can be changed now to check for both callbacks being implemented.Signed-off-by Heiner Kallweit <[email protected]>
Signature · 1 line
Florian
From: Heiner Kallweit <[email protected]>
Date: Mon, 12 Nov 2018 21:16:06 +0100
Quoted 6 lines
Now that the icplus driver has been fixed all PHY drivers supporting interrupts have both callbacks (
config_intrandack_interrupt) implemented - as it should be. Thereforephy_drv_supports_irq()can be changed now to check for both callbacks being implemented.Signed-off-by Heiner Kallweit <[email protected]>
Applied, thanks Heiner.