FAILED: patch "[PATCH] phy: usb: Toggle the PHY power during init" failed to apply to 5.10-stable tree
[email protected]
maintainerThe patch below does not apply to the 5.10-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y
git checkout FETCH_HEAD
git cherry-pick -x 0a92ea87bdd6f77ca4e17fe19649882cf5209edd
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2024122729-anemic-selector-ee96@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 0a92ea87bdd6f77ca4e17fe19649882cf5209edd Mon Sep 17 00:00:00 2001
From: Justin Chen <[email protected]>
Date: Thu, 24 Oct 2024 14:35:40 -0700
Subject: [PATCH] phy: usb: Toggle the PHY power during init
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.
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c +6 -0
@@ -325,6 +325,12 @@ static void usb_init_common_7216(struct brcm_usb_init_params *params)void __iomem *ctrl = params->regs[BRCM_REGS_CTRL ];USB_CTRL_UNSET (ctrl,USB_PM ,XHC_S2_CLK_SWITCH_EN ); + +/* +* The PHY might be in a bad state if it is already powered +* up. Toggle the power just in case. +*/ +USB_CTRL_SET (ctrl,USB_PM ,USB_PWRDN );USB_CTRL_UNSET (ctrl,USB_PM ,USB_PWRDN );/* 1 millisecond - for USB clocks to settle down */