netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] phy: add suspend/resume in the ic+
@ 2010-07-20  7:12 Giuseppe CAVALLARO
  2010-07-20 15:24 ` Randy Dunlap
  2010-07-20 20:24 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Giuseppe CAVALLARO @ 2010-07-20  7:12 UTC (permalink / raw)
  To: netdev; +Cc: Giuseppe Cavallaro

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
---
 drivers/net/phy/icplus.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/phy/icplus.c b/drivers/net/phy/icplus.c
index 439adaf..3f2583f 100644
--- a/drivers/net/phy/icplus.c
+++ b/drivers/net/phy/icplus.c
@@ -116,6 +116,8 @@ static struct phy_driver ip175c_driver = {
 	.config_init	= &ip175c_config_init,
 	.config_aneg	= &ip175c_config_aneg,
 	.read_status	= &ip175c_read_status,
+	.suspend	= genphy_suspend,
+	.resume		= genphy_resume,
 	.driver		= { .owner = THIS_MODULE,},
 };
 
-- 
1.5.5.6


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] phy: add suspend/resume in the ic+
  2010-07-20  7:12 [PATCH] phy: add suspend/resume in the ic+ Giuseppe CAVALLARO
@ 2010-07-20 15:24 ` Randy Dunlap
  2010-07-20 20:24 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2010-07-20 15:24 UTC (permalink / raw)
  To: Giuseppe CAVALLARO; +Cc: netdev

On Tue, 20 Jul 2010 09:12:34 +0200 Giuseppe CAVALLARO wrote:

> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
> ---
>  drivers/net/phy/icplus.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/net/phy/icplus.c b/drivers/net/phy/icplus.c
> index 439adaf..3f2583f 100644
> --- a/drivers/net/phy/icplus.c
> +++ b/drivers/net/phy/icplus.c
> @@ -116,6 +116,8 @@ static struct phy_driver ip175c_driver = {
>  	.config_init	= &ip175c_config_init,
>  	.config_aneg	= &ip175c_config_aneg,
>  	.read_status	= &ip175c_read_status,
> +	.suspend	= genphy_suspend,
> +	.resume		= genphy_resume,
>  	.driver		= { .owner = THIS_MODULE,},
>  };
>  
> -- 

I was wondering how that works when CONFIG_PM is disabled, but I did a build
with it disabled and see that genphy_suspend and genphy_resume are always
built -- even when PM is disabled.  Interesting.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] phy: add suspend/resume in the ic+
  2010-07-20  7:12 [PATCH] phy: add suspend/resume in the ic+ Giuseppe CAVALLARO
  2010-07-20 15:24 ` Randy Dunlap
@ 2010-07-20 20:24 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2010-07-20 20:24 UTC (permalink / raw)
  To: peppe.cavallaro; +Cc: netdev

From: Giuseppe CAVALLARO <peppe.cavallaro@st.com>
Date: Tue, 20 Jul 2010 09:12:34 +0200

> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>

Applied.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-20 20:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-20  7:12 [PATCH] phy: add suspend/resume in the ic+ Giuseppe CAVALLARO
2010-07-20 15:24 ` Randy Dunlap
2010-07-20 20:24 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).