* [PATCH net-next 1/1] net: phy: broadcom: Add genphy_suspend and genphy_resume for BCM5464
@ 2019-06-08 13:53 Vladimir Oltean
2019-06-10 1:32 ` Florian Fainelli
2019-06-10 3:05 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Vladimir Oltean @ 2019-06-08 13:53 UTC (permalink / raw)
To: hkallweit1, f.fainelli, andrew, davem; +Cc: netdev, Vladimir Oltean
This puts the quad PHY ports in power-down mode when the PHY transitions
to the PHY_HALTED state. It is likely that all the other PHYs support
the BMCR_PDOWN bit, but I only have the BCM5464R to test.
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
---
drivers/net/phy/broadcom.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c
index 67fa05d67523..937d0059e8ac 100644
--- a/drivers/net/phy/broadcom.c
+++ b/drivers/net/phy/broadcom.c
@@ -663,6 +663,8 @@ static struct phy_driver broadcom_drivers[] = {
.config_init = bcm54xx_config_init,
.ack_interrupt = bcm_phy_ack_intr,
.config_intr = bcm_phy_config_intr,
+ .suspend = genphy_suspend,
+ .resume = genphy_resume,
}, {
.phy_id = PHY_ID_BCM5481,
.phy_id_mask = 0xfffffff0,
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next 1/1] net: phy: broadcom: Add genphy_suspend and genphy_resume for BCM5464
2019-06-08 13:53 [PATCH net-next 1/1] net: phy: broadcom: Add genphy_suspend and genphy_resume for BCM5464 Vladimir Oltean
@ 2019-06-10 1:32 ` Florian Fainelli
2019-06-10 3:05 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2019-06-10 1:32 UTC (permalink / raw)
To: Vladimir Oltean, hkallweit1, andrew, davem; +Cc: netdev
On 6/8/2019 6:53 AM, Vladimir Oltean wrote:
> This puts the quad PHY ports in power-down mode when the PHY transitions
> to the PHY_HALTED state. It is likely that all the other PHYs support
> the BMCR_PDOWN bit, but I only have the BCM5464R to test.
Yes, they should all support that low power mode, but like you, only
have a limited subset to work with.
>
> Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next 1/1] net: phy: broadcom: Add genphy_suspend and genphy_resume for BCM5464
2019-06-08 13:53 [PATCH net-next 1/1] net: phy: broadcom: Add genphy_suspend and genphy_resume for BCM5464 Vladimir Oltean
2019-06-10 1:32 ` Florian Fainelli
@ 2019-06-10 3:05 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2019-06-10 3:05 UTC (permalink / raw)
To: olteanv; +Cc: hkallweit1, f.fainelli, andrew, netdev
From: Vladimir Oltean <olteanv@gmail.com>
Date: Sat, 8 Jun 2019 16:53:56 +0300
> This puts the quad PHY ports in power-down mode when the PHY transitions
> to the PHY_HALTED state. It is likely that all the other PHYs support
> the BMCR_PDOWN bit, but I only have the BCM5464R to test.
>
> Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-10 3:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-08 13:53 [PATCH net-next 1/1] net: phy: broadcom: Add genphy_suspend and genphy_resume for BCM5464 Vladimir Oltean
2019-06-10 1:32 ` Florian Fainelli
2019-06-10 3:05 ` 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).