Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d70262ea authored by Jaedon Shin's avatar Jaedon Shin Committed by Kishon Vijay Abraham I
Browse files

phy: phy-brcm-usb-init: Fix power down USB 3.0 PHY when XHCI reenabled



Unset is required to enable USB 3.0 PHY when XHCI reenabled in response
to setting PHY3_IDDQ_OVERRIDE in uninit().

Fixes: cd6f769f ("phy: phy-brcm-usb-init: Power down USB 3.0 PHY when XHCI disabled")
Signed-off-by: default avatarJaedon Shin <jaedon.shin@gmail.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent ce397d21
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -962,6 +962,10 @@ void brcm_usb_init_xhci(struct brcm_usb_init_params *params)
{
	void __iomem *ctrl = params->ctrl_regs;

	USB_CTRL_UNSET(ctrl, USB30_PCTL, PHY3_IDDQ_OVERRIDE);
	/* 1 millisecond - for USB clocks to settle down */
	usleep_range(1000, 2000);

	if (BRCM_ID(params->family_id) == 0x7366) {
		/*
		 * The PHY3_SOFT_RESETB bits default to the wrong state.