Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: cd6f769fdea7 ("phy: phy-brcm-usb-init: Power down USB 3.0 PHY when XHCI disabled")
Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Jaedon Shin and committed by
Kishon Vijay Abraham I
d70262ea ce397d21

+4
+4
drivers/phy/broadcom/phy-brcm-usb-init.c
··· 962 962 { 963 963 void __iomem *ctrl = params->ctrl_regs; 964 964 965 + USB_CTRL_UNSET(ctrl, USB30_PCTL, PHY3_IDDQ_OVERRIDE); 966 + /* 1 millisecond - for USB clocks to settle down */ 967 + usleep_range(1000, 2000); 968 + 965 969 if (BRCM_ID(params->family_id) == 0x7366) { 966 970 /* 967 971 * The PHY3_SOFT_RESETB bits default to the wrong state.