From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA6BAC43387 for ; Thu, 3 Jan 2019 10:36:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A755620815 for ; Thu, 3 Jan 2019 10:36:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="fxqeFdiH"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="LmK8hWuV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730998AbfACKgV (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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; }; }; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project