Skip to contentSkip to conversation

net: phy: export phy_suspend and phy_resume

PATCH In review Florian Fainelli 2 participants 4 messages Jul 8, 2014 – Jul 9, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: phy: export phy_suspend and phy_resume

phy_suspend and phy_resume are two commonly used helper functions that need to be exported for Ethernet drivers to be built as modules

Fixes 40755a0fce17 ("net: systemport: add suspend and resume support")
---
 drivers/net/phy/phy_device.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/phy/phy_device.c +2 -0
index 35d753d22f78..4f4568ef124e 100644
@@ -696,6 +696,7 @@ int phy_suspend(struct phy_device *phydev)
 		return phydrv->suspend(phydev);
 	return 0;
 }
+EXPORT_SYMBOL(phy_suspend);
 
 int phy_resume(struct phy_device *phydev)
 {
@@ -705,6 +706,7 @@ int phy_resume(struct phy_device *phydev)
 		return phydrv->resume(phydev);
 	return 0;
 }
+EXPORT_SYMBOL(phy_resume);
 
 /* Generic PHY support and helper functions */
 
Signature · 1 line
1.9.1
maintainer
#1 lore raw

From: Florian Fainelli <[email protected]>
Date: Tue, 8 Jul 2014 10:38:36 -0700

Quoted 5 lines

phy_suspend and phy_resume are two commonly used helper functions that need to be exported for Ethernet drivers to be built as modules

Fixes 40755a0fce17 ("net: systemport: add suspend and resume support")

First of all, the commit in question went into 'net' not 'net-next'.

Second of all, I reverted it.

So this patch is not appropriate unless/until that commit gets re-added, and it's not targetted at the proper tree anyways.

#2 lore raw

2014-07-08 20:37 GMT-07:00 David Miller <[email protected]>:

Quoted 10 lines

From: Florian Fainelli <[email protected]>
Date: Tue, 8 Jul 2014 10:38:36 -0700

Quoted 5 lines

phy_suspend and phy_resume are two commonly used helper functions that need to be exported for Ethernet drivers to be built as modules

Fixes 40755a0fce17 ("net: systemport: add suspend and resume support")

First of all, the commit in question went into 'net' not 'net-next'.

I am confused now, because I sent the patches against net-next and still see them in your net-next tree here:

https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/?id=40755a0fce17c39557fd55b634024082671074ed

Quoted 2 lines

Second of all, I reverted it.

I remember you replied to Vince about his patches which also depended on phy_suspend/resume to be there and you did revert his changes.

Quoted 3 lines

So this patch is not appropriate unless/until that commit gets re-added, and it's not targetted at the proper tree anyways.

Signature · 1 line
Florian
maintainer
#3 lore raw

From: Florian Fainelli <[email protected]>
Date: Tue, 8 Jul 2014 20:59:47 -0700

Quoted 15 lines

2014-07-08 20:37 GMT-07:00 David Miller <[email protected]>:

Quoted 10 lines

From: Florian Fainelli <[email protected]>
Date: Tue, 8 Jul 2014 10:38:36 -0700

Quoted 5 lines

phy_suspend and phy_resume are two commonly used helper functions that need to be exported for Ethernet drivers to be built as modules

Fixes 40755a0fce17 ("net: systemport: add suspend and resume support")

First of all, the commit in question went into 'net' not 'net-next'.

I am confused now, because I sent the patches against net-next and still see them in your net-next tree here:

Quoted 7 lines

https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/?id=40755a0fce17c39557fd55b634024082671074ed

Quoted 2 lines

Second of all, I reverted it.

I remember you replied to Vince about his patches which also depended on phy_suspend/resume to be there and you did revert his changes.

Indeed, I confused your and Vince's patches. Sorry about that.

I'll apply your patch to net-next, thanks.