From patchwork Thu Dec 19 15:04:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 182119 Delivered-To: patch@linaro.org Received: by 2002:a92:d0a:0:0:0:0:0 with SMTP id 10csp598932iln; Thu, 19 Dec 2019 07:05:13 -0800 (PST) X-Google-Smtp-Source: APXvYqzmmAD3/CVhDKBiLwKdgi5V8SubeyMmxH4IyffMSi3GVpct7G0D41X1U6Ya/TqA+njpbfts X-Received: by 2002:a9d:133:: with SMTP id 48mr9014286otu.15.1576767913229; Thu, 19 Dec 2019 07:05:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576767913; cv=none; d=google.com; s=arc-20160816; b=JrjKqa7XfTY8YPI5lbmhusE73TmtQpr5VjCemUiNiyJHfwiBomxdhXFq8H57DFW+j/ IGSXw3aDoWSGzLMpuxQcxlXbQuyxlBiN1RJ+RUA7kxuYdUynVfS/aEtWVbLmK4Sij/lI 5SOu5HDQaI8ZN3ZazeITq70GPJ1/RK2jm/txYnoA6M7Kh8/zHuU/J/x7V268E7qXfqJj ftHaXO2qwBInY45vlFuIAqrZScNfcC6SXIAX79REkD2HNcpflLh4WbYtdw91/mTRBUEu G4J8NzRZsttwFSV+mJqEBR54c4MWeKxfxYqUDPjhZtGXzi2f4jOKSJEvXA0/jRK553aO KT6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UV8wFR7M+VS4arxyH1PUjEkzp5QsXyxTBfn/3aIBy9c=; b=U+MgB8yTggiTImerIVK0si8Wnt+yaibHed629OyHScbCOQixV1IppRgdkM3hEEmWib yuYZ6LliBRbYY0e9r9AVauOSkkPcW3/mfyVnqT8sCSkNXe/8RUNgh4cASXk4dRtRgLKY otRp7iTTRoKo4p1xaxSi2/PIDzAb7Z+nOqPJG0oDA3x5xgx/Fl01jfhhmCH/7L+RwU9A ho4wU/HjSqWBCCLBjZlKPxfEIjt+R8CibyiqypDxxnmXo4DO7d0IAVuSkoMl2UZt2yl3 Nqy14Oyw/w2ZEiK1p1Q1qX60ZQ3zm7d6vNbqVonzhbWxAwT5c2Zu7cX99U8kaNsLZsGS ld2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wEoffsMq; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m24si3463420otn.67.2019.12.19.07.05.09; Thu, 19 Dec 2019 07:05:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wEoffsMq; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726877AbfLSPE7 (ORCPT + 15 others); Thu, 19 Dec 2019 10:04:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:34160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726817AbfLSPE7 (ORCPT ); Thu, 19 Dec 2019 10:04:59 -0500 Received: from localhost.localdomain (unknown [122.178.234.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1970724672; Thu, 19 Dec 2019 15:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576767898; bh=nGIBL8aVxoKmkDIwSClLd5dlI6t4JIUetskk9vvcXmE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wEoffsMqqtDei+TxWhS4ErXebPe5/QAcEeRDjnuJ9hWoJuDCFZWni5wTkSw5v+0Q+ CzGqS0kYdZAd0Y9O503gtkAOKiGeCgwUjyD0KNFf3/GMMxtdcqF28IFUfVQ0PY2zeQ JOG8wfnizA3Yp3TbCOaBK+2Teopb8kCOPg/J93GI= From: Vinod Koul To: Kishon Vijay Abraham I Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Can Guo , Jeffrey Hugo , linux-kernel@vger.kernel.org Subject: [PATCH 1/4] phy: qcom-qmp: Increase the phy init timeout Date: Thu, 19 Dec 2019 20:34:30 +0530 Message-Id: <20191219150433.2785427-2-vkoul@kernel.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191219150433.2785427-1-vkoul@kernel.org> References: <20191219150433.2785427-1-vkoul@kernel.org> 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 If we do full reset of the phy, it seems to take a couple of ms to come up on my system so increase the timeout to 10ms. This was found by full reset addition by commit 870b1279c7a0 ("scsi: ufs-qcom: Add reset control support for host controller") and fixes the regression to platforms by this commit. Suggested-by: Can Guo Signed-off-by: Vinod Koul --- drivers/phy/qualcomm/phy-qcom-qmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.23.0 Reviewed-by: Jeffrey Hugo Tested-by: Jeffrey Hugo diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c index 091e20303a14..c2e800a3825a 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c @@ -66,7 +66,7 @@ /* QPHY_V3_PCS_MISC_CLAMP_ENABLE register bits */ #define CLAMP_EN BIT(0) /* enables i/o clamp_n */ -#define PHY_INIT_COMPLETE_TIMEOUT 1000 +#define PHY_INIT_COMPLETE_TIMEOUT 100000 #define POWER_DOWN_DELAY_US_MIN 10 #define POWER_DOWN_DELAY_US_MAX 11