Patch "net: macb: fix phy interrupt parsing" has been added to the 4.11-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
net: macb: fix phy interrupt parsing
to the 4.11-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-macb-fix-phy-interrupt-parsing.patch
and it can be found in the queue-4.11 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu May 11 11:03:14 CEST 2017
From: Alexandre Belloni <[email protected]>
Date: Wed, 26 Apr 2017 12:06:28 +0200
Subject: net: macb: fix phy interrupt parsing
From: Alexandre Belloni <[email protected]>
[ Upstream commit ae3696c167cc04d32634c4af82f43b446c5176b0 ]
Since 83a77e9ec415, the phydev irq is explicitly set to PHY_POLL when there is no pdata. It doesn't work on DT enabled platforms because the phydev irq is already set by libphy before.
--- drivers/net/ethernet/cadence/macb.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-)
drivers/net/ethernet/cadence/macb.c +10 -8
@@ -432,15 +432,17 @@ static int macb_mii_probe(struct net_dev } pdata =dev_get_platdata (&bp->pdev->dev); -if (pdata &&gpio_is_valid (pdata->phy_irq_pin)) { - ret =devm_gpio_request (&bp->pdev->dev, pdata->phy_irq_pin, -"phy int" ); -if (!ret) { - phy_irq =gpio_to_irq (pdata->phy_irq_pin); - phydev->irq = (phy_irq <0 ) ?PHY_POLL : phy_irq; +if (pdata) { +if (gpio_is_valid (pdata->phy_irq_pin)) { + ret =devm_gpio_request (&bp->pdev->dev, + pdata->phy_irq_pin,"phy int" ); +if (!ret) { + phy_irq =gpio_to_irq (pdata->phy_irq_pin); + phydev->irq = (phy_irq <0 ) ?PHY_POLL : phy_irq; + } + }else { + phydev->irq =PHY_POLL ; } - }else { - phydev->irq =PHY_POLL ; }/* attach the mac to the phy */
Patches currently in stable-queue which might be from [email protected] are
queue-4.11/net-macb-fix-phy-interrupt-parsing.patch