Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2074665ybl; Thu, 19 Dec 2019 07:41:15 -0800 (PST) X-Google-Smtp-Source: APXvYqy7htucX3i59PohncOWQwI7IwEYqjeEZW0fe5XsxoXq7Q7InGudhD7bkMg1HOJ12AkzCJjX X-Received: by 2002:aca:1b08:: with SMTP id b8mr2321461oib.106.1576770074995; Thu, 19 Dec 2019 07:41:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576770074; cv=none; d=google.com; s=arc-20160816; b=xigKRKQAIYHo1KKgcq92pDrgP18mATieKi8Gbk9DKV/W+wT5s9cVqvvCsgSk0XfQzO Am4tNcb+Pr1hdQSdcKiCximUxDpEWLhNmPIiwuZFIwh1H0m+LTFpuinpUZEV9zObbbVr yGSNDvk8P6H9MvDDoXTJumqxfY6kH+m5ZAhNIK+GSN+heYDqwWKnl95V409V5JDMqC6N +GuRqzI9YSJ50zorF8CO5gD/9GvUXBhrejTryFCro16yyy/KyR0DoPYDnPbXHUQTkZb8 pPcZ4DXP3F8bLuQdfFB9Gca/WQbqrkV6HlLdIM7HQNV4+JsYqpItPPWy8r28OABeETnN 8UMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Gr9FpHE3aZ+0XNc20nhwkPJMiU+DR3VeCtEE5MKegDM=; b=QXB0aRSEJ9O704jyNOh+dc8vn7qtl5QVVSB2dy+Bp97T4gUWI7SuVYtOM/YWk/8ONj 7KclU0NS3GSWm76TZK6gZX/8FDnyX82V+QbV7uKPYB3UGkUWlqZxy4sRz3o8ItmAmglS kgFr9Wdx4CGD7GB2NlKlLlFD4dxbQdS3ZXHLjweTWKynPehCm/FYRe9aNaDRgzx9SQm2 /E1FCqAEHuheFDVtB3byR+L8uI8lNnjDXeNZmXugRWWaP9OYT/REtUWHqoQSJOEV3cul Q2U7O5UK/YOs9piV4uUjngqWUk1puOOmKcDaoWKkiHYn63Lv2Hu3T9siQFjfyJy/ifNm 8snw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O2pKAqW6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 w7si3055228oie.196.2019.12.19.07.41.01; Thu, 19 Dec 2019 07:41:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=O2pKAqW6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726797AbfLSPkQ (ORCPT + 99 others); Thu, 19 Dec 2019 10:40:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:41092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726758AbfLSPkP (ORCPT ); Thu, 19 Dec 2019 10:40:15 -0500 Received: from localhost (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 2F0BD206EC; Thu, 19 Dec 2019 15:40:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576770015; bh=zjrNAQxSo9YIjVhVdnA6CeKJyfbiwv9WV9GOdbURvIU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O2pKAqW6CchuZ3q3t13kjD7vXWpT9Q6DWWEcJ3b2q6OcukXchJLA4qjr06s04Alqb ON8en1yzwROMzEYLJNLhf74MUqZdYay+NMrwsA+V2XV41AXRiEUwUdM5dpaneCJy0l W3JENpfEH82BvmCyxPXvk9LlYL+509+eUYOKR65k= Date: Thu, 19 Dec 2019 21:10:09 +0530 From: Vinod Koul To: Jeffrey Hugo Cc: Kishon Vijay Abraham I , MSM , Bjorn Andersson , Andy Gross , Can Guo , lkml Subject: Re: [PATCH 1/4] phy: qcom-qmp: Increase the phy init timeout Message-ID: <20191219154009.GX2536@vkoul-mobl> References: <20191219150433.2785427-1-vkoul@kernel.org> <20191219150433.2785427-2-vkoul@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-12-19, 08:29, Jeffrey Hugo wrote: > On Thu, Dec 19, 2019 at 8:04 AM Vinod Koul wrote: > > > > 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 > > Reviewed-by: Jeffrey Hugo > Tested-by: Jeffrey Hugo > > Tested on the Lenovo Miix 630 laptop (a msm8998 based system). This > addresses the regression. Thanks Jeff for quick test and reviews! Appreciate it. > > --- > > drivers/phy/qualcomm/phy-qcom-qmp.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > 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 > > > > -- > > 2.23.0 > > -- ~Vinod