From patchwork Thu Jan 30 18:38:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 232369 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=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 D975DC35240 for ; Thu, 30 Jan 2020 18:45:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A97502082E for ; Thu, 30 Jan 2020 18:45:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580409949; bh=CLnnv+DIgRqlddXu6awSKhPWUB15tiANzjLw5GEDDLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=L/zCQq/cDzRu8h6z8biQ+/LvD0eGQtNXWHQ5D9F6jg8mPYUekIqnnLCHcfe32E0b6 QRBbZR9CJfkzgUJkIBNcayhcNBtgUUHbAaHHEwx9iX28SUFa9tOm/Z5UHd9rThWDla Wk7gH4srqML8AcO1Kj6GBPXEyP0LylgTLO1vceDY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731085AbgA3Sps (ORCPT ); Thu, 30 Jan 2020 13:45:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:55526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728079AbgA3Spr (ORCPT ); Thu, 30 Jan 2020 13:45:47 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 D65DA205F4; Thu, 30 Jan 2020 18:45:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580409946; bh=CLnnv+DIgRqlddXu6awSKhPWUB15tiANzjLw5GEDDLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jhnr5KR5qkDN74WDaNpuVVBV8HdRWCoyoBhFBa6OPagcUznbeBINzVtkESc7+3jW2 3KTtLGYdJRD+fK3Fnla3tkY02/trNPgyccJFV5TmxzVzGv2DhJtAUOI3l7je/ibv+g aC/XNvemlqyQGKMucr5HZo+mL3Jkk0dnlOviCap4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bjorn Andersson , Evan Green , Vinod Koul , Kishon Vijay Abraham I , Sasha Levin Subject: [PATCH 5.4 055/110] phy: qcom-qmp: Increase PHY ready timeout Date: Thu, 30 Jan 2020 19:38:31 +0100 Message-Id: <20200130183621.641220951@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200130183613.810054545@linuxfoundation.org> References: <20200130183613.810054545@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Bjorn Andersson [ Upstream commit cd217ee6867d285ceecd610fa1006975d5c683fa ] 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 Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sasha Levin --- 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 39e8deb8001ea..27dd20a7fe131 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