Message ID | 20150412235021.19585.27431@quantum |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDO333VC4INBBUEJVSUQKGQE6SUGFHI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 504CE2121F for <linaro@patches.linaro.org>; Sun, 12 Apr 2015 23:50:41 +0000 (UTC) Received: by laat2 with SMTP id t2sf14138094laa.2 for <linaro@patches.linaro.org>; Sun, 12 Apr 2015 16:50:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:content-type:mime-version :content-transfer-encoding:to:from:in-reply-to:cc:references :message-id:user-agent:subject:date:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=HNDmY2NJ2y3O8wGlU+za2x7ilajxqrZF9ajr6cwQ9YM=; b=F5QFSYATQ1wqA3rHZ3kq6kr3mW6wFy9yOrAI7p5CRPb8aeXNQgQkGTMM0z+ZiQb4ep KKmOSVcpz9A24hsYzalyTkBK3ZoTc8zSUy+vui5N+w0i1mp4yIYudljzYEaNpg+9YJcs Ov/ktMKk597squ1tnzxboYV/h8cW+HFVvR0pGKXxlw2h1dllka/DzBFdgT94OH0VC2/q C3oh/DTUy5OoW3E12y30ua25Z4dFV0Cjyn87salWufvIdS88JUkhAAB71MBCx5X7x6EM d3xiCzKJTBBNE0tnXEghU7dfsczqtHldtLLu4xnggxqvQqsE+6Cgv0tSZfuf8d4U6bEt qqlQ== X-Gm-Message-State: ALoCoQlVXETS6AtD3v9ZfUOYoUWGD6k15273uFeLOTH9iIAr8xj23IlybDHpWsDqtHi+qRqmk2hz X-Received: by 10.152.37.101 with SMTP id x5mr1745349laj.5.1428882640234; Sun, 12 Apr 2015 16:50:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.204 with SMTP id ba12ls667163lab.41.gmail; Sun, 12 Apr 2015 16:50:39 -0700 (PDT) X-Received: by 10.153.4.43 with SMTP id cb11mr11049899lad.122.1428882639848; Sun, 12 Apr 2015 16:50:39 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id kw12si7062761lac.3.2015.04.12.16.50.39 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Apr 2015 16:50:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbbqq2 with SMTP id qq2so46867714lbb.3 for <patchwork-forward@linaro.org>; Sun, 12 Apr 2015 16:50:38 -0700 (PDT) X-Received: by 10.152.19.199 with SMTP id h7mr11149579lae.32.1428882638740; Sun, 12 Apr 2015 16:50:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp911540lbt; Sun, 12 Apr 2015 16:50:37 -0700 (PDT) X-Received: by 10.67.15.102 with SMTP id fn6mr22123330pad.120.1428882636512; Sun, 12 Apr 2015 16:50:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gm10si13066351pbd.148.2015.04.12.16.50.35; Sun, 12 Apr 2015 16:50:36 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752812AbbDLXub (ORCPT <rfc822;ivan.khoronzhuk@linaro.org> + 27 others); Sun, 12 Apr 2015 19:50:31 -0400 Received: from mail-ie0-f181.google.com ([209.85.223.181]:32796 "EHLO mail-ie0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752269AbbDLXua convert rfc822-to-8bit (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 12 Apr 2015 19:50:30 -0400 Received: by iebmp1 with SMTP id mp1so52901800ieb.0 for <linux-kernel@vger.kernel.org>; Sun, 12 Apr 2015 16:50:29 -0700 (PDT) X-Received: by 10.50.4.97 with SMTP id j1mr12823520igj.46.1428882629429; Sun, 12 Apr 2015 16:50:29 -0700 (PDT) Received: from localhost (pool-71-119-96-202.lsanca.fios.verizon.net. [71.119.96.202]) by mx.google.com with ESMTPSA id fs5sm908761igb.0.2015.04.12.16.50.27 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 12 Apr 2015 16:50:28 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Boris Brezillon <boris.brezillon@free-electrons.com>, "Stephen Boyd" <sboyd@codeaurora.org>, "Tomeu Vizoso" <tomeu.vizoso@collabora.com> From: Michael Turquette <mturquette@linaro.org> In-Reply-To: <20150327004054.2f6f34ee@bbrezillon> Cc: "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> References: <20150327004054.2f6f34ee@bbrezillon> Message-ID: <20150412235021.19585.27431@quantum> User-Agent: alot/0.3.5 Subject: Re: Propagating clock rate constraints Date: Sun, 12 Apr 2015 16:50:21 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mturquette@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index fa5a00e..482e906 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -1638,6 +1638,8 @@ static struct clk_core *clk_calc_new_rates(struct clk_core *clk, max_rate, &best_parent_rate, &parent_hw); + if (new_rate < min_rate || new_rate > max_rate) + return NULL; parent = parent_hw ? parent_hw->core : NULL; } else if (clk->ops->round_rate) { new_rate = clk->ops->round_rate(clk->hw, rate,