Patch "net: phy: broadcom: Add power down exit reset state delay" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: phy: broadcom: Add power down exit reset state delay

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-phy-broadcom-add-power-down-exit-reset-state-del.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ac3e4918dfcd0369e8d16f224ac1db6f18fd5d8d
Author: Florian Fainelli <f.fainelli@xxxxxxxxx>
Date:   Wed Mar 10 20:53:42 2021 -0800

    net: phy: broadcom: Add power down exit reset state delay
    
    [ Upstream commit 7a1468ba0e02eee24ae1353e8933793a27198e20 ]
    
    Per the datasheet, when we clear the power down bit, the PHY remains in
    an internal reset state for 40us and then resume normal operation.
    Account for that delay to avoid any issues in the future if
    genphy_resume() changes.
    
    Fixes: fe26821fa614 ("net: phy: broadcom: Wire suspend/resume for BCM54810")
    Signed-off-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c
index cd271de9609b..69713ea36d4e 100644
--- a/drivers/net/phy/broadcom.c
+++ b/drivers/net/phy/broadcom.c
@@ -332,6 +332,11 @@ static int bcm54xx_resume(struct phy_device *phydev)
 	if (ret < 0)
 		return ret;
 
+	/* Upon exiting power down, the PHY remains in an internal reset state
+	 * for 40us
+	 */
+	fsleep(40);
+
 	return bcm54xx_config_init(phydev);
 }
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux