Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4294650pxb; Mon, 8 Feb 2021 12:41:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0D0Kp1qW/60MtwdDxkddSFPZKayeRuycbQWXFTiNQfofJDFfyVpKZ2lDNZdLuKdOSnyb6 X-Received: by 2002:a17:907:2d09:: with SMTP id gs9mr3056995ejc.363.1612816916449; Mon, 08 Feb 2021 12:41:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612816916; cv=none; d=google.com; s=arc-20160816; b=aSeVrKrMMtsj+4wfHqPyZsJ2iVRWdJ7dsPqas18t+1M41NdXpbH8HY/aGkhw7PkWwz wWpkAdO9VGtATxglVGX1sq7xB1+lxwm7NdWDpTg5pI6kh0r4AYIvskskhPhsmW+twTgr PZOGy5y1hlAoSXBKzJ/zNlePdKCzuNA4K4gGZPwXg7wOY5lD9Tq1B1yqMx2ql0+YJ2FZ mog0yzWsqI7eIDLTCAPM/1q3NVaE4ZSftSXtCzD5v9XV2YkQ5b4vUm+LHJP+EvokTwyL PP4WpzOVFDqXIB/wQveri7o+/rtU+JMwRU2hUMJQLX3JyVisjIWIQnJg/Ee2ncH+vHLZ Zsjg== 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=oceINmsq5LKDDfU9cDZxHcuCR8YITvkF+3LlGTPesZY=; b=AFGyb32fs3xVhlvdJTztdmSFnZ0ou0h6l1qabNoP86VyBWtVdgxvF1fQwlDUUWilSH sFGnm5nN5gxJMrvPPkca+FoVvozIHxNOhpIVW4S5ZCz41DLUAhwM1fqKhKp1C5o7aXdI vcDWMWuzj+loYsllEyA/HMHg8JhZl6zQBI0HAvh2ybhh/KgeRKuRZSzEyxh49QLBt8CN 3XWN9PEFkxuRV0Nf7shMPX0Qdse34YrVAw45uQmQy0RSr32SS69wP9JM6yEbfQq1SYBP bYdvxjdm4oMhkHTBdav6ASA0QqR3bzERU80Faf2PGlxZfqxyz9uMQm6T1cS2Iv6GCICG ocaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bvWVE4rM; 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 i4si11639202ejg.48.2021.02.08.12.41.32; Mon, 08 Feb 2021 12:41:56 -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=bvWVE4rM; 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 S233255AbhBHUkh (ORCPT + 99 others); Mon, 8 Feb 2021 15:40:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:40234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236292AbhBHT3K (ORCPT ); Mon, 8 Feb 2021 14:29:10 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2888F64E85; Mon, 8 Feb 2021 19:28:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612812509; bh=FhPBn+xAIyaRb80jUQ/+VCEBlRmAWGAiuwuWeZKEAw0=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=bvWVE4rMtWiJ+5Ud0GaW89qsRs0OrwsT4pVsImCFxcf+ZGl5xFL/kVQwMynV0/qsn fclR22jSfKUskWjVUh7udHhdDkwgdXdy89bmlwijaMwPyxCB08UA26YfAP+1jjVJ1d lNMa9RrWLGYq8Ymzl+tr4eIxyhSNBAHktbh08HwConCJPU7Y04DyJVYrzOWRNSKADK HajbPDlcsrsFvysMhZ7i0kDiJZfwPVdTtFzG3V7I5v4CPBw352Y4ZhfTlHgbTJPcOo Eo9x8MG7nWkiAgshfrkn4HLquMYyfPKZ0SDOwrg1l1NKibDPlzEAd4eOs4Iy8z0KVY 4xfWHl2o4XGrA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210120073414.69208-2-jckuo@nvidia.com> References: <20210120073414.69208-1-jckuo@nvidia.com> <20210120073414.69208-2-jckuo@nvidia.com> Subject: Re: [PATCH v7 01/14] 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, linux-clk@vger.kernel.org, JC Kuo , Thierry Reding To: JC Kuo , gregkh@linuxfoundation.org, jonathanh@nvidia.com, kishon@ti.com, mturquette@baylibre.com, robh@kernel.org, thierry.reding@gmail.com Date: Mon, 08 Feb 2021 11:28:27 -0800 Message-ID: <161281250769.76967.1356115606522577203@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 23:34:01) > 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