From patchwork Thu Nov 8 02:10:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thinh Nguyen X-Patchwork-Id: 10673375 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 352C2175A for ; Thu, 8 Nov 2018 02:10:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2768D2D60F for ; Thu, 8 Nov 2018 02:10:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 166832D630; Thu, 8 Nov 2018 02:10:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC02F2D60F for ; Thu, 8 Nov 2018 02:10:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728583AbeKHLnj (ORCPT ); Thu, 8 Nov 2018 06:43:39 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:60142 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728523AbeKHLnj (ORCPT ); Thu, 8 Nov 2018 06:43:39 -0500 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id BC07E10C0BEC; Wed, 7 Nov 2018 18:10:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1541643031; bh=gcgrTubDtYJxtaFCe8lypLpa26+y6D+4jdGIeDxYtwQ=; h=Date:In-Reply-To:References:From:Subject:To:CC:From; b=c7r4Gyi2MD6FCqUx6cm4AQceFC9cBYau8y9vyMyE3rBFstv4tyK/Q3kN7xNKkAYzU CxJvjvQadqD5HeuI+uduBnxwpbSb60stxxb//60mejRrCmjYUiQXqRuHKA8E1vzs8b Q9B5qcEB51xjlc41GXdGLDxha1P/vP4hEQ0EEmp5VbR3LEihG0bwc2H1Z00l0DJ60s vrRFXcegd4pAVHfI2kAgLjd7VWS4gZEBijCKy7XggKK2cJK0HQd/deOiFMelSEgp8y 1BsY0ZtMJrI4mjlw2d1+yZ/1mVO4Tv1KUD4SRmjw4HXXaND4B1L1YlKkknLdWmP90I MpIRtpCu+1Z0A== Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) by mailhost.synopsys.com (Postfix) with ESMTP id A0A7E3EA5; Wed, 7 Nov 2018 18:10:31 -0800 (PST) Received: from US01WEHTC1.internal.synopsys.com (10.12.239.236) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 7 Nov 2018 18:10:31 -0800 Received: from te-lab16 (10.13.184.20) by us01wehtc1.internal.synopsys.com (10.12.239.236) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 7 Nov 2018 18:10:30 -0800 Received: by te-lab16 (sSMTP sendmail emulation); Wed, 07 Nov 2018 18:10:30 -0800 Date: Wed, 7 Nov 2018 18:10:30 -0800 Message-ID: <188eaa661bef09ee4c6b505d45aba606a8c8ff8e.1541642865.git.thinhn@synopsys.com> In-Reply-To: References: From: Thinh Nguyen Subject: [PATCH 1/3] usb: dwc3: Set GUSB2PHYCFG.ENBLSLPM To: Felipe Balbi , CC: John Youn MIME-Version: 1.0 X-Originating-IP: [10.13.184.20] Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/usb/dwc3/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index becfbb87f791..a4068a7b95dd 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -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;