From patchwork Thu Jan 3 10:35:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manu Gautam X-Patchwork-Id: 10747187 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 B91E36C2 for ; Thu, 3 Jan 2019 10:36:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A873A20683 for ; Thu, 3 Jan 2019 10:36:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CB9328446; Thu, 3 Jan 2019 10:36:22 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 4B6AF20683 for ; Thu, 3 Jan 2019 10:36:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730238AbfACKgV (ORCPT ); Thu, 3 Jan 2019 05:36:21 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:57578 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729765AbfACKgV (ORCPT ); Thu, 3 Jan 2019 05:36:21 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DEA766081C; Thu, 3 Jan 2019 10:36:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1546511780; bh=IrdkuAoYKmOW+z4EWTpsqu3PQ6R58t6j98t1LvVpJSo=; h=From:To:Cc:Subject:Date:From; b=fxqeFdiH5ZT5SBp5r5eyXjbR9uNuY/wGQOQghxDmYg9JAS0ljIYy/rOjmxvp0o9uG JcfMfGMavbnorjWyG5kuBx7R3fDpTMeoPplB4bHMercyQM5MwMOIdELMF4y6JmDpyW ad68t6Y/h9gjHOMbAk3On50Wno6sazUFQLtAk1Qg= Received: from mgautam-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgautam@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2FE6A6030E; Thu, 3 Jan 2019 10:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1546511777; bh=IrdkuAoYKmOW+z4EWTpsqu3PQ6R58t6j98t1LvVpJSo=; h=From:To:Cc:Subject:Date:From; b=LmK8hWuVgwYoP4hhVbTkbFgiMk8cqrJaqEPXyCKng6ZNrSlaZhZO08C1Wmri2t0H/ zTLVs5BSAjdCw/SeHdodiYPlofhObu/6vjHrO3spjO1Zk8AVFj+7DTxGw5mlhjmfTB X6U4C0h8U4lzTLTAEsRPdBmAZDyq+Py9lGRgZInM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2FE6A6030E Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mgautam@codeaurora.org From: Manu Gautam To: Andy Gross Cc: Vivek Gautam , linux-arm-msm@vger.kernel.org, Manu Gautam , David Brown , Rob Herring , Mark Rutland , linux-soc@vger.kernel.org (open list:ARM/QUALCOMM SUPPORT), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v1] arm64: dts: qcom: msm8996: Disable USB2 PHY suspend by core Date: Thu, 3 Jan 2019 16:05:38 +0530 Message-Id: <20190103103538.30970-1-mgautam@codeaurora.org> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP QUSB2 PHY on msm8996 doesn't work well when autosuspend by dwc3 core using USB2PHYCFG register is enabled. One of the issue seen is that PHY driver reports PLL lock failure and fails phy_init() if dwc3 core has USB2 PHY suspend enabled. Fix this by using quirks to disable USB2 PHY LPM/suspend and dwc3 core already takes care of explicitly suspending PHY during suspend if quirks are specified. Signed-off-by: Manu Gautam Tested-by: Vivek Gautam --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index b29fe80d7288..1f14ca35afc2 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -911,6 +911,8 @@ interrupts = <0 138 IRQ_TYPE_LEVEL_HIGH>; phys = <&hsusb_phy2>; phy-names = "usb2-phy"; + snps,dis_u2_susphy_quirk; + snps,dis_enblslpm_quirk; }; }; @@ -940,6 +942,8 @@ interrupts = <0 131 IRQ_TYPE_LEVEL_HIGH>; phys = <&hsusb_phy1>, <&ssusb_phy_0>; phy-names = "usb2-phy", "usb3-phy"; + snps,dis_u2_susphy_quirk; + snps,dis_enblslpm_quirk; }; };