Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1834616pxb; Wed, 10 Feb 2021 19:11:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXY+Y4Akt4n6azdb7fwyT5ByARC6XEjvPd4EweTHXcXEF6jeV66Z0ioYYdl3OlkmCoLmPJ X-Received: by 2002:a17:906:b890:: with SMTP id hb16mr5912508ejb.420.1613013097886; Wed, 10 Feb 2021 19:11:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613013097; cv=none; d=google.com; s=arc-20160816; b=FyT35pnxA8EeYUpyP2EryRWCDTOYlwe83RHs/NggjTLxigX075Nw8yCaxlsSaS6Tts YkKs1N9iN8piiwRiAHiHy+4YRhkrwwKy71tiAdZWTF2UuLGzMeWhJFl8mBmuN3YUF1dJ TgC82X3kwv1nh81hUV352YILFcHp5pv0MnPNLQhEiFTeGmNnyeLC0QiFf9BBn8acQO99 83LMWLj3msEyATrXEwVmGteTDTBP63fedDC+wQifNZH2VFHR5kQ3ul5LdM8b6IoeV2eU tTfTPshW/pDr83IeHxefQ2UB6NmncbgiaWtnpZlKrwUbX8bzBGlvSx/9TDI83838nnNM 577w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=KMAqRJ5TZfmuD6pYRg+L8eeljkxdBWzu3oqJaA7t8Oo=; b=0Bsx1DfL2HL/4kh5mgLB1Rjo6NZfRu2/Jw6X38wi8voks8Xy6cZK8OU515QmKq5iXK YCWz81pYJwmbY0Urutc7SDz0VSQxiThgMk9bD7suoyB3uNKjjG3b+U9OgwhFVBrSgHkK vFiDXydDBYD+VOE19gbLRHc77nAfg8MO7pCAkWR+8Y/D0niS1Bvb1fSDERsD1H2WdI7h ELG+WRF5WFRO27uMu/eS5Ni2cggNkjrOzZ9whFkbcjZlBRTuIKoTSyWG6poUgJ2sWR7+ jNPFhqK8ZlkS69yv8DZyJ209rMhtIVJiCCLuJpHt9jN5EAuid61OiZtOE/azkt6hsw++ LpLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LogmMHTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id s26si2821270edi.495.2021.02.10.19.11.09; Wed, 10 Feb 2021 19:11:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LogmMHTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229894AbhBKDHI (ORCPT + 99 others); Wed, 10 Feb 2021 22:07:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:57958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbhBKDHH (ORCPT ); Wed, 10 Feb 2021 22:07:07 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 90C9364E2E; Thu, 11 Feb 2021 03:06:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613012786; bh=T95zpwNhmbI5C/Y3yzoaQbujINFDdaissul65TKmVbc=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=LogmMHTvL7RtJ8jHBDboQ0cANK9qOLCWsXFNT3j2o2pz/oxdOgJD+9F+gMJD4xkD0 /w43iW6qrR8UALcJhIGbmdPwEWGy7fHJUSi6PU7zaiRamdWxhtuDfeZCzaCsuteLFR f7pD55EQJoPXM3l3+Wj9zx5t0b0S2EPEd2UBOJfw7tA53oKe2wsW3ELHPQI+vU0Upi nIBISEOgG6izgUgqZ5LpUYTdfwyVZKbAuzVG83vzV5K8kQf7KEDCJfMdePwJEPH7gj vhmwVaDy59Ot37TIvkefPAfxLOJOpriQmnGnSIJAJmupQEesbiJgR/IMInwDgeDgIh enGkU/mEOWafQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210119085546.725005-2-jckuo@nvidia.com> References: <20210119085546.725005-1-jckuo@nvidia.com> <20210119085546.725005-2-jckuo@nvidia.com> Subject: Re: [PATCH v6 01/15] clk: tegra: Add PLLE HW power sequencer control From: Stephen Boyd Cc: linux-tegra@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, nkristam@nvidia.com, JC Kuo , Thierry Reding To: JC Kuo , gregkh@linuxfoundation.org, jonathanh@nvidia.com, kishon@ti.com, robh@kernel.org, thierry.reding@gmail.com Date: Wed, 10 Feb 2021 19:06:25 -0800 Message-ID: <161301278546.1254594.2076696450962679318@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting JC Kuo (2021-01-19 00:55:32) > PLLE has a hardware power sequencer logic which is a state machine > that can power on/off PLLE without any software intervention. The > sequencer has two inputs, one from XUSB UPHY PLL and the other from > SATA UPHY PLL. PLLE provides reference clock to XUSB and SATA UPHY > PLLs. When both of the downstream PLLs are powered-off, PLLE hardware > power sequencer will automatically power off PLLE for power saving. >=20 > XUSB and SATA UPHY PLLs also have their own hardware power sequencer > logic. XUSB UPHY PLL is shared between XUSB SuperSpeed ports and PCIE > controllers. The XUSB UPHY PLL hardware power sequencer has inputs > from XUSB and PCIE. When all of the XUSB SuperSpeed ports and PCIE > controllers are in low power state, XUSB UPHY PLL hardware power > sequencer automatically power off PLL and flags idle to PLLE hardware > power sequencer. Similar applies to SATA UPHY PLL. >=20 > PLLE hardware power sequencer has to be enabled after both downstream > sequencers are enabled. >=20 > This commit adds two helper functions: > 1. tegra210_plle_hw_sequence_start() for XUSB PADCTL driver to enable > PLLE hardware sequencer at proper time. >=20 > 2. tegra210_plle_hw_sequence_is_enabled() for XUSB PADCTL driver to > check whether PLLE hardware sequencer has been enabled or not. >=20 > Signed-off-by: JC Kuo > Acked-by: Thierry Reding > --- Acked-by: Stephen Boyd