linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2] net: phy: lxt: Add suspend/resume support to LXT971 and LXT973.
@ 2019-05-23  8:55 Christophe Leroy
  2019-05-23 14:37 ` Florian Fainelli
  2019-05-23 16:19 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Christophe Leroy @ 2019-05-23  8:55 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Heiner Kallweit, David S. Miller
  Cc: linux-kernel, netdev

All LXT PHYs implement the standard "power down" bit 11 of
BMCR, so this patch adds support using the generic
genphy_{suspend,resume} functions added by
commit 0f0ca340e57b ("phy: power management support").

LXT970 is left aside because all registers get cleared upon
"power down" exit.

Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
---
 I'd be happy if you could also merge that into 4.19

 v2: revised commit log without the Fixes: tag.

 drivers/net/phy/lxt.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/phy/lxt.c b/drivers/net/phy/lxt.c
index 314486288119..356bd6472f49 100644
--- a/drivers/net/phy/lxt.c
+++ b/drivers/net/phy/lxt.c
@@ -262,6 +262,8 @@ static struct phy_driver lxt97x_driver[] = {
 	/* PHY_BASIC_FEATURES */
 	.ack_interrupt	= lxt971_ack_interrupt,
 	.config_intr	= lxt971_config_intr,
+	.suspend	= genphy_suspend,
+	.resume		= genphy_resume,
 }, {
 	.phy_id		= 0x00137a10,
 	.name		= "LXT973-A2",
@@ -271,6 +273,8 @@ static struct phy_driver lxt97x_driver[] = {
 	.probe		= lxt973_probe,
 	.config_aneg	= lxt973_config_aneg,
 	.read_status	= lxt973a2_read_status,
+	.suspend	= genphy_suspend,
+	.resume		= genphy_resume,
 }, {
 	.phy_id		= 0x00137a10,
 	.name		= "LXT973",
@@ -279,6 +283,8 @@ static struct phy_driver lxt97x_driver[] = {
 	.flags		= 0,
 	.probe		= lxt973_probe,
 	.config_aneg	= lxt973_config_aneg,
+	.suspend	= genphy_suspend,
+	.resume		= genphy_resume,
 } };
 
 module_phy_driver(lxt97x_driver);
-- 
2.13.3


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

* Re: [PATCH net-next v2] net: phy: lxt: Add suspend/resume support to LXT971 and LXT973.
  2019-05-23  8:55 [PATCH net-next v2] net: phy: lxt: Add suspend/resume support to LXT971 and LXT973 Christophe Leroy
@ 2019-05-23 14:37 ` Florian Fainelli
  2019-05-23 16:19 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2019-05-23 14:37 UTC (permalink / raw)
  To: Christophe Leroy, Andrew Lunn, Heiner Kallweit, David S. Miller
  Cc: linux-kernel, netdev



On 5/23/2019 1:55 AM, Christophe Leroy wrote:
> All LXT PHYs implement the standard "power down" bit 11 of
> BMCR, so this patch adds support using the generic
> genphy_{suspend,resume} functions added by
> commit 0f0ca340e57b ("phy: power management support").
> 
> LXT970 is left aside because all registers get cleared upon
> "power down" exit.
> 
> Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

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

* Re: [PATCH net-next v2] net: phy: lxt: Add suspend/resume support to LXT971 and LXT973.
  2019-05-23  8:55 [PATCH net-next v2] net: phy: lxt: Add suspend/resume support to LXT971 and LXT973 Christophe Leroy
  2019-05-23 14:37 ` Florian Fainelli
@ 2019-05-23 16:19 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2019-05-23 16:19 UTC (permalink / raw)
  To: christophe.leroy; +Cc: andrew, f.fainelli, hkallweit1, linux-kernel, netdev

From: Christophe Leroy <christophe.leroy@c-s.fr>
Date: Thu, 23 May 2019 08:55:32 +0000 (UTC)

> All LXT PHYs implement the standard "power down" bit 11 of
> BMCR, so this patch adds support using the generic
> genphy_{suspend,resume} functions added by
> commit 0f0ca340e57b ("phy: power management support").
> 
> LXT970 is left aside because all registers get cleared upon
> "power down" exit.
> 
> Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
> ---
>  I'd be happy if you could also merge that into 4.19
> 
>  v2: revised commit log without the Fixes: tag.

Applied, thanks.

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

end of thread, other threads:[~2019-05-23 16:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-23  8:55 [PATCH net-next v2] net: phy: lxt: Add suspend/resume support to LXT971 and LXT973 Christophe Leroy
2019-05-23 14:37 ` Florian Fainelli
2019-05-23 16:19 ` 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).