]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
usb: dwc3: Set GUSB2PHYCFG.ENBLSLPM
authorThinh Nguyen <thinh.nguyen@synopsys.com>
Thu, 8 Nov 2018 02:10:30 +0000 (18:10 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 26 Nov 2018 07:06:31 +0000 (09:06 +0200)
GUSB2PHYCFG.ENBLSLPM enables the controller to assert low power signals
to the PHY. Unless disabled via device property, explicitly set
GUSB2PHYCFG.ENBLSLPM as it may not be set by default.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c

index 2f2048aa5fde13dde439e52236620f9bab603118..077f60baa12d58cfd1ca0497a2292b022fe053c8 100644 (file)
@@ -661,6 +661,8 @@ static int dwc3_phy_setup(struct dwc3 *dwc)
 
        if (dwc->dis_enblslpm_quirk)
                reg &= ~DWC3_GUSB2PHYCFG_ENBLSLPM;
+       else
+               reg |= DWC3_GUSB2PHYCFG_ENBLSLPM;
 
        if (dwc->dis_u2_freeclk_exists_quirk)
                reg &= ~DWC3_GUSB2PHYCFG_U2_FREECLK_EXISTS;