diff mbox

phy: micrel: Reenable interrupts during resume for ksz9031

Message ID 1471899436-56626-1-git-send-email-xander.huff@ni.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Xander Huff Aug. 22, 2016, 8:57 p.m. UTC
Like the ksz8081, the ksz9031 has the behavior where it will clear the
interrupt enable bits when leaving power down. This takes advantage of the
solution provided by f5aba91.

Signed-off-by: Xander Huff <xander.huff@ni.com>
Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com>
---
 drivers/net/phy/micrel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Florian Fainelli Aug. 22, 2016, 11:35 p.m. UTC | #1
On 08/22/2016 01:57 PM, Xander Huff wrote:
> Like the ksz8081, the ksz9031 has the behavior where it will clear the
> interrupt enable bits when leaving power down. This takes advantage of the
> solution provided by f5aba91.
> 
> Signed-off-by: Xander Huff <xander.huff@ni.com>
> Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
David Miller Aug. 23, 2016, 11:57 p.m. UTC | #2
From: Xander Huff <xander.huff@ni.com>
Date: Mon, 22 Aug 2016 15:57:16 -0500

> Like the ksz8081, the ksz9031 has the behavior where it will clear the
> interrupt enable bits when leaving power down. This takes advantage of the
> solution provided by f5aba91.
> 
> Signed-off-by: Xander Huff <xander.huff@ni.com>
> Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com>

Applied.
diff mbox

Patch

diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index 053e879..885ac9c 100644
--- a/drivers/net/phy/micrel.c
+++ b/drivers/net/phy/micrel.c
@@ -964,7 +964,7 @@  static struct phy_driver ksphy_driver[] = {
 	.get_strings	= kszphy_get_strings,
 	.get_stats	= kszphy_get_stats,
 	.suspend	= genphy_suspend,
-	.resume		= genphy_resume,
+	.resume		= kszphy_resume,
 }, {
 	.phy_id		= PHY_ID_KSZ8873MLL,
 	.phy_id_mask	= MICREL_PHY_ID_MASK,