Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp335216ybh; Mon, 9 Mar 2020 23:05:30 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvP0oMS2suzoeYUnAXSkuggDpfqVoeZuVqHJQCglFsnEWjdgU+QoBK6/TcBU8Shq9UmrwpX X-Received: by 2002:aca:4858:: with SMTP id v85mr33826oia.51.1583820330406; Mon, 09 Mar 2020 23:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583820330; cv=none; d=google.com; s=arc-20160816; b=rXGZ96WppQmgTp+16Z4kCLDSbw1xZZ52smMPtjdOkWp3YoRFqr82sJhrFy3Q+UtSU1 ncxHEggeRDQl2rd/IXcOAL+i3d1JqA0/QSaKQ/YVtb0N23s5lHFcP+p9DsM2v4vIPyTK pmjTxBwBpA/j0o6JIhP0YSw0kB8PA3dFVlPflhWNBmfn01eso/Ah21z+p3krGt3jEXmD MqFrOwYngFOweJbpiLSRjcZJt78HIrQ2aLsTrZDj0cJAqZFIYWqQBBPfNJs44JMqPGQ0 abv9Z6Jy9TAIQ9+bKn/lIDD1hCFeJEjZPXZhFSVM/Sm/hYNVsZsxO1l2IfXcBnyrvLuj nr8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1Yj+u7mrd/69a3yG7fn7reg+/Xl0hSKEuuygXFoRJqA=; b=dOgLHWqjqHScmsBwmP9Et9Sh1ELjqH5FiCHxD3krzzQDgVqwjh9Xh0LfPmwSvDzX2K 26NrF2hIv+sjZdidZJ8098FULJItA/vLgZoOMGwBzVgmU5Np5EBMqgk+th1JLo+pVeis gYsPgqn+oM5HOo/1P1YwBNy/GfNlKVqqtWRyXSYxC0nUvvbm9bKsYZEou6fINB84d0pX HeCpdKySbpiFR+woru4TpxlRQ2XSgRSxV6/2QcLQ1/zUryZzaxJKsR6jJYkx4Ov3Pnlz FhjpnqpEDzTLSKcSzl/aOMviaOeeTOI2qWm1SZIWjEqYQ3Xmul0o9d+PvsqQ6TxE+vsf 538Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KN6ETD5w; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si4710432oig.223.2020.03.09.23.05.18; Mon, 09 Mar 2020 23:05:30 -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=KN6ETD5w; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726211AbgCJGEl (ORCPT + 99 others); Tue, 10 Mar 2020 02:04:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:44438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbgCJGEl (ORCPT ); Tue, 10 Mar 2020 02:04:41 -0400 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (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 6EF36222D9; Tue, 10 Mar 2020 06:04:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583820281; bh=r2MPC5UtaW4E+Gx3vUdEl/eb7ySDkUz4DXRirRU3m1M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KN6ETD5wysJVebQR9jSbcf0KVdTLhMNlw0l7uwvCqnSSOmqmHlDvEn8rGnRTiAksi 0d/oDwkmigihBqVp+7r0aG6DTpvKk2ulzoZV6A3EGs00RcaVL6p16PeD/cDD8yLvZL hD8qQkhkKrvBVCkr8ObTi3u33FI5mDFLZsCla3Bk= Date: Tue, 10 Mar 2020 14:04:35 +0800 From: Shawn Guo To: peng.fan@nxp.com Cc: s.hauer@pengutronix.de, sboyd@kernel.org, robh+dt@kernel.org, viresh.kumar@linaro.org, rjw@rjwysocki.net, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Anson.Huang@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, abel.vesa@nxp.com Subject: Re: [PATCH v2 05/14] clk: imx: pfdv2: determine best parent rate Message-ID: <20200310060434.GH15729@dragon> References: <1582099197-20327-1-git-send-email-peng.fan@nxp.com> <1582099197-20327-6-git-send-email-peng.fan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1582099197-20327-6-git-send-email-peng.fan@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2020 at 03:59:48PM +0800, peng.fan@nxp.com wrote: > From: Peng Fan > > pfdv2 is only used in i.MX7ULP. To get best pfd output, the i.MX7ULP > Datasheet defines two best PLL rate and pfd frac. > > Per Datasheel > All PLLs on i.MX 7ULP either have VCO base frequency of > 480 MHz or 528 MHz. So when determine best rate, we also > determine best parent rate which could match the requirement. > > For some reason the current parent might not be 480MHz or 528MHz, > so we still take current parent rate as a choice. > > And we also enable flag CLK_SET_RATE_PARENT to let parent rate > to be configured. > > Signed-off-by: Peng Fan Applied, thanks.