]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: usb: Toggle the PHY power during init
authorJustin Chen <justin.chen@broadcom.com>
Thu, 24 Oct 2024 21:35:40 +0000 (14:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Jan 2025 09:34:13 +0000 (10:34 +0100)
commite4e6217cf7a62741e73de379148ab5aa279aed6c
tree88082a7e27e96533fb81768fd482fc1f4947331d
parent7e7c8ffc017de3c2d04ff5175f753399c9127291
phy: usb: Toggle the PHY power during init

commit 0a92ea87bdd6f77ca4e17fe19649882cf5209edd upstream.

When bringing up the PHY, it might be in a bad state if left powered.
One case is we lose the PLL lock if the PLL is gated while the PHY
is powered. Toggle the PHY power so we can start from a known state.

Fixes: 4e5b9c9a73b3 ("phy: usb: Add support for new Synopsys USB controller on the 7216")
Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20241024213540.1059412-1-justin.chen@broadcom.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c