Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5849764ybn; Sun, 29 Sep 2019 07:03:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqaZOGFRhG2+XbY3Ld68VBE0ehLthidP/DNl6lCyZkTYqBiQb90qmTI2+PzLmFsDd/AtBi X-Received: by 2002:aa7:d611:: with SMTP id c17mr14997968edr.196.1569765812768; Sun, 29 Sep 2019 07:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569765812; cv=none; d=google.com; s=arc-20160816; b=upBd6YkzhF7Y8djf6fes2u22i7pnZ48paUi8WVxU9d4YpGea4DW5gJLuE7oB7ppVpF Td18GxqDwGNkrEY9NhY+rkryqwXoWViTJKlXf+zdt1WISdFNcUHfEoe5eMXTa8nW4P2l K0YtqNpkHHlI0Ix5gvHBixmmymWa7rUoJZ/mejr+E0JnmM7N9cjVOrQyEUiOB6w5fLFx z2kKVJyOUAK4MsAwye/7Ausr0f4SfuEUf0v/YBw7CuQYefqbzFsAc5Y9h10e7W0YnHnP VR+6vq7PcKZkwR3ouF4lh8TCE3PQWzQE05WDUOMrD3IHIM+6L2NLt7ke333td+d75gHt n/Bg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7ZOq3FDV+bmjV7SMAxxROgQrSfMAJZ9iqZZReOhsvmU=; b=ezdpCakAFvt76HsmWhmiqnbYz8O2GqHnjK5C/hGBZUoIiQXx3gbxFeWmidXYX/TTD+ GLVS8g3K9/+ADZ+oAZzFt4e9dYnvzDwnkhjgZepeBaGOYJ+YuxOu3rUrlslAQNZc14v5 nahNP5mNpQeixn6aiqyuj4CJxmp3UWo/jIh88tH/xWu2/9QpVQEM6OM8J68EdrGJiz6p Xm36dX5CwCdhIjXzjaJ/YXApxpSFxN8yNqmsBmSxoQKWqD3lRIFI8K7BtOkGfVTIipOp T7RILRDtoUTV/60OMBiFiP3neEV3uiBmh0ZOdISe8+sPwXPHJvAS7ketGHKhHR21+qC/ ybgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RTkYVPs5; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7si5385670edb.238.2019.09.29.07.03.07; Sun, 29 Sep 2019 07:03:32 -0700 (PDT) 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=RTkYVPs5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729905AbfI2OA2 (ORCPT + 99 others); Sun, 29 Sep 2019 10:00:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:42154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729888AbfI2OAY (ORCPT ); Sun, 29 Sep 2019 10:00:24 -0400 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 05DDF21882; Sun, 29 Sep 2019 14:00:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569765623; bh=KLbFfGlf9oltN7d7+gTl8gb7w5YEcQPPEj9x0jk4g74=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RTkYVPs5I6L/ZE65V06LzlacLZq/isYE4S+Ja2BYs2D5qLH+MM9cioV/cPn+uk2z0 u0aH/zOFiDzL6pJxz6cxhVt1NDghDQSc1UbZnzl3p7VndI1XwEINAl4hfViU8WoEI1 Ezc6WfhqZ2RrQ6luTwxwxYj6mJXZS2y1TEEwu/hY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marc Gonzalez , Kishon Vijay Abraham I , Sasha Levin Subject: [PATCH 5.2 03/45] phy: qcom-qmp: Raise qcom_qmp_phy_enable() polling delay Date: Sun, 29 Sep 2019 15:55:31 +0200 Message-Id: <20190929135025.438428669@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190929135024.387033930@linuxfoundation.org> References: <20190929135024.387033930@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marc Gonzalez [ Upstream commit 5206026404190125436f81088eb3667076e56083 ] readl_poll_timeout() calls usleep_range() to sleep between reads. usleep_range() doesn't work efficiently for tiny values. Raise the polling delay in qcom_qmp_phy_enable() to bring it in line with the delay in qcom_qmp_phy_com_init(). Signed-off-by: Marc Gonzalez 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 43abdfd0deed9..99b3bc04d215a 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c @@ -1549,7 +1549,7 @@ static int qcom_qmp_phy_enable(struct phy *phy) status = pcs + cfg->regs[QPHY_PCS_READY_STATUS]; mask = cfg->mask_pcs_ready; - ret = readl_poll_timeout(status, val, val & mask, 1, + ret = readl_poll_timeout(status, val, val & mask, 10, PHY_INIT_COMPLETE_TIMEOUT); if (ret) { dev_err(qmp->dev, "phy initialization timed-out\n"); -- 2.20.1