Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp560759imm; Wed, 17 Oct 2018 04:54:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV62+ylTYZbXpv+GgLuAhH5AL1Q+3FU5M90diYXnzWVeOaqH6va+kD4ry0TLQ53dwIvV4PKzH X-Received: by 2002:a17:902:8609:: with SMTP id f9-v6mr25564457plo.134.1539777281487; Wed, 17 Oct 2018 04:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539777281; cv=none; d=google.com; s=arc-20160816; b=T7SxbapSQpRcSIiKooebrbqKE/SEIxoxYmMZjPnuFbdJWydIZdohetHsKLOpS6/TZm nKF4kaB6EhZchLi/ojWsefKOHGmae9W/uoI0A88ZKB8BvORtCdV3V1ZXYjDpWsPoyGeX XoE0tGhRQ5t4aEAYXAT3F1r0RWWmwYv7yIG96EK7qciPTQUSn0UxHSw++nDQzn7YFvBv tC7n7qK6qqRxc3Q+W1z8ZPDvUTiMRjMt5k6GJhljEoFs7tja2CM5EWTmgkLtpkjvIIKZ ZNZ7hHS2/SSmZm/nhWbEqUjBME6Cu346DgQO2OqC/hZ+dWQSpbAEINFp5GqltPRAaXyP 1aMg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=cfSG1buupXCJHF8jEHW3x2+z7RFJydFSFEVUQlA+auM=; b=vS0P+wTfQ93RdJfBA7y9nVOeP1Bh9ccYPzUbyccvUwNCMuPoFHL0J9briD7v+G6VHW aX10AdnqyGlakyR6eJgOsriqH0qp2FMkdA7b0BbyxGVG8nNDmu8Svqo7BHNh0mK5twF+ wSNXBDkl71Y0jTTctKuKkg83izxLUI0g1uIx3Otz90ZUV5cOg/pMGuqkyBi/7pqeSKId PgV0IEClI1OivAkss4xwWY6gDLyZaDl3PVUrVsrpYVAOAohMirEShvHyoMOBSD6zWNHU F74LQkKTPbOvZXfxbVNs1vFCk7UNUny4g5ysAb9o2dje9M6DjXRAJC1zc/qe5S9cYqj/ FwhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=guEq1lof; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y14-v6si17076556pll.385.2018.10.17.04.54.25; Wed, 17 Oct 2018 04:54:41 -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=@gmail.com header.s=20161025 header.b=guEq1lof; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727291AbeJQTr7 (ORCPT + 99 others); Wed, 17 Oct 2018 15:47:59 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:41765 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726954AbeJQTr6 (ORCPT ); Wed, 17 Oct 2018 15:47:58 -0400 Received: by mail-lf1-f65.google.com with SMTP id q39-v6so19538812lfi.8; Wed, 17 Oct 2018 04:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=cfSG1buupXCJHF8jEHW3x2+z7RFJydFSFEVUQlA+auM=; b=guEq1lofLc+hLXvba6ZyXOb3a7J1se9Opg0WAFrkiC75OIc3+YcpBlfKefwgXu8z8F TsJ4M7fvuoDd/5LjSQYA9y3sVZ6vPcMmTU/+reUygSPMh2iVAHP7JA/D5AnvvKG8XxaT NLlB3VM9O7wXDrrItAP2rcm6EZVMVNYPxIYinxm09vftGolf8tOAqhC7Ys8yJx0huQ4/ /2MyB6iK5BSzOAQg2GCF9GgI00CPEF8gV5yhsiQzZQasGZ7ABNfnAGce6mXkZ5eSkoq8 i/G1V3a5qlbaMiEEYwNZs7yXA2Yzf/bALtvivIaZGYXSsxG0ToLopcKSz+b367201HJN 9EGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=cfSG1buupXCJHF8jEHW3x2+z7RFJydFSFEVUQlA+auM=; b=l1etdYtXR9NryRZnx240WywvMrV73kd8wK3foJJBLbHZqMP5mcwn9w6RyUSvOXJ6Bg 3td6fginHvt1wzoB9Z6rJ5cy8mKzJEdFWD5Im5PS1VdzUJFXMEbPAOYnwlh4+1lWh+HK yNmHw3evChUc2BQAvbwsVRlNsEe2NcKDhRWmOcsuXpLMzIyfDS0K9YyDgUW2AMD7/epi 4vG7Z805EUaRZHvdLocMheSDrkh4JcEBfRJyLKFREnvQLJvfE3j99nweG3B7le1oLHWP xVy30AA0aTHJ2QFAGfJzgRG/1XawpLCtG+Ors6ghmPoOGCmrj6J7Q+a3Ha2EaJjnkV5k 24/A== X-Gm-Message-State: ABuFfojeV6SQ6Q0aVUXwfJvY+oKrzq1F6JNhKSloz3H3eyZj+9knxLZi OlFOV10TEeQM1U3kDXwAGD6EzvBf X-Received: by 2002:a19:a686:: with SMTP id p128-v6mr14905522lfe.42.1539777155232; Wed, 17 Oct 2018 04:52:35 -0700 (PDT) Received: from [192.168.2.145] ([109.252.91.118]) by smtp.googlemail.com with ESMTPSA id k18-v6sm3922402ljk.58.2018.10.17.04.52.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 04:52:34 -0700 (PDT) Subject: Re: [PATCH v2 2/2] clk: tegra20: Enable lock-status polling for PLLs From: Dmitry Osipenko To: Peter De Schrijver Cc: Thierry Reding , Jonathan Hunter , Prashant Gaikwad , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180830184210.5369-1-digetx@gmail.com> <20180830184210.5369-2-digetx@gmail.com> <20180831092948.GP1636@tbergstrom-lnx.Nvidia.com> <909e2a52-4116-9ee7-db23-8ea1dfffade0@gmail.com> Message-ID: <2e877ee7-2977-496b-5073-772256c76191@gmail.com> Date: Wed, 17 Oct 2018 14:52:27 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <909e2a52-4116-9ee7-db23-8ea1dfffade0@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/31/18 12:45 PM, Dmitry Osipenko wrote: > On 8/31/18 12:29 PM, Peter De Schrijver wrote: >> On Thu, Aug 30, 2018 at 09:42:10PM +0300, Dmitry Osipenko wrote: >>> Currently all PLL's on Tegra20 use a hardcoded delay despite of having >>> a lock-status bit. The lock-status polling was disabled ~7 years ago >>> because PLLE was failing to lock and was a suspicion that other PLLs >>> might be faulty too. Other PLLs are okay, hence enable the lock-status >>> polling for them. This reduces delay of any operation that require PLL >>> to lock. >>> >>> Signed-off-by: Dmitry Osipenko >>> --- >>> >>> Changelog: >>> >>> v2: Don't enable polling for PLLE as it known to not being able to lock. >>> >> >> This isn't correct. The lock bit of PLLE can declare lock too early, but the >> PLL itself does lock. > > Indeed, it locks but can't be polled for the lock-status as it doesn't have the > lock-status bit. Actually it has lock-status bit. Not sure how I managed to miss it before.