From patchwork Fri Dec 20 10:17:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 11305133 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 194D814F6 for ; Fri, 20 Dec 2019 10:17:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EBF1024686 for ; Fri, 20 Dec 2019 10:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576837063; bh=Ck3ilHyvx6XvHA65br3cwI6dDkzvtwpztH+Uhmy2tGA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=lyykzbKIP714Z4svvyZb4uNkOnxoY6rSCh5szqa2i+iHpR7cYtd8wk651/8V5Qw/j UD4sdq2QyLnWsO4PI/EUi9XFHA2jcE4bHtYVLvvSW2pX2GexvyGVI7CZ6C2qfS2/Cq /IX9akHBWlMKOiVgSP6HNQm2RXTumlHedKhg8XT0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726210AbfLTKRm (ORCPT ); Fri, 20 Dec 2019 05:17:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:53056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727347AbfLTKRm (ORCPT ); Fri, 20 Dec 2019 05:17:42 -0500 Received: from localhost.localdomain (unknown [106.201.107.54]) (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 5C32424682; Fri, 20 Dec 2019 10:17:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576837061; bh=Ck3ilHyvx6XvHA65br3cwI6dDkzvtwpztH+Uhmy2tGA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B/zZDE4n02b82w4qCokUUQjSkUgLZwjv5e9nYqSUAfE2q2owaqqvaS3AF/cUOvdjo g5afNUbO3sB9dU/TtmkVlAQ8BVSKRaVjvOhcwUfVlDkdaxp72791c0zBTYM3nZZsls ty+wyajBHF3lWNajncHVZ6hMXVgq6u63SMDr45JU= From: Vinod Koul To: Kishon Vijay Abraham I Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Andy Gross , Can Guo , Jeffrey Hugo , linux-kernel@vger.kernel.org, Evan Green , Vinod Koul Subject: [PATCH v2 1/5] phy: qcom-qmp: Increase PHY ready timeout Date: Fri, 20 Dec 2019 15:47:15 +0530 Message-Id: <20191220101719.3024693-2-vkoul@kernel.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191220101719.3024693-1-vkoul@kernel.org> References: <20191220101719.3024693-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 From: Bjorn Andersson It's typical for the QHP PHY to take slightly above 1ms to initialize, so increase the timeout of the PHY ready check to 10ms - as already done in the downstream PCIe driver. Signed-off-by: Bjorn Andersson Tested-by: Evan Green Tested-by: Vinod Koul Signed-off-by: Vinod Koul --- 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..66f91726b8b2 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 10000 #define POWER_DOWN_DELAY_US_MIN 10 #define POWER_DOWN_DELAY_US_MAX 11