From patchwork Fri Sep 6 04:56:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 173193 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp229665ilq; Thu, 5 Sep 2019 21:58:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmezpJaVCbqiXOasignvFGZ6SLdb0AOTRrNVu820Crrl2gqXFwt756oMjngJXo/NonEH1S X-Received: by 2002:a17:90a:30e8:: with SMTP id h95mr7885674pjb.44.1567745915821; Thu, 05 Sep 2019 21:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567745915; cv=none; d=google.com; s=arc-20160816; b=kibYwbMWE7gl7JLIZR5a5cfA043Pk0uwN80+ALfxK9cVxRvuT2PplX39QoL41SqzDZ FvWb8z7Iz3ldhXNGtK/J+gwx1hA2+iGtAUmhlLbq+qvi+T8lsb6v7wEKGTJYp6uF/goT g2QafTL1rX1dUj/s1DeCvXFDe6NMfWuU9hgt/5TDTwbJAkNmkKObnuw3rgwsSOerBOUW zZCVm1EsDOHfAp2wSJol7Eh2wjiNmMI1F9ch5ISixNUDLm3dHDxAs/OX292I5tW3p0PI Q99dOn4WjeC5q6RjcWYJFyShmMXJbFQ3bJDBFF6SLQaSYGN8LpI5QT4ZkP/dLWg6N+4A V/PQ== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gW0tQu5nR1csWSjEhwdylpiNgx8WAt27kDzTt6C/Zlc=; b=eDrZ0KRrbtq7rbMuL67FU8IojIgz9N6rKQzfnAROLwT3IAzEy4yw1hJX6MM3sJYcf3 1U962V7v3qT9RxW2leWOadzeNy8QvYXCTuiR1me7TUteKS+PtlTtqwwHm5py2Z5a+FZ7 kaBgjznNQOfW0j2/zf/6+oT56KuoDGLnJLRsAZ8YH/pM3Kyx4vJUnHFDjodg/lK6mIjz SxxHMZxV/a3itbTEh3bFVgZcbzLXCe2jlQhWLg1C9AMIfsr4SZE2HVm1T5ttVww1zezw l24AI2QNpzsJGk1LvwdxEGpXaAqDck9fYMssHwed51APEHfciS95nsTs8X+sCmNx5WLK wuqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KVGNyYYG; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 b3si833874plz.30.2019.09.05.21.58.35; Thu, 05 Sep 2019 21:58:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=KVGNyYYG; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727514AbfIFE6e (ORCPT + 15 others); Fri, 6 Sep 2019 00:58:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:40504 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbfIFE6e (ORCPT ); Fri, 6 Sep 2019 00:58:34 -0400 Received: from localhost.localdomain (unknown [223.226.32.145]) (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 F0185207FC; Fri, 6 Sep 2019 04:58:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567745914; bh=zvy0GlP/XHjEuOF/F5T+o2/beVvliDTkHocl2QsHJ3k=; h=From:To:Cc:Subject:Date:From; b=KVGNyYYGrvTmwGhJkMLriGQ05SwusBSDnYO01GzhuMgtRm/v/+7IVre9R3h8pJwEK ynnk4hsd/OQDBLP2vNchDR0kbXfdp+hzSbG+A6f/0MWw3QZwEYtaWKs3C/+ba3fB7h RxHLiOd4HoIcBdEGfYSAWpMKPVprgs8qQOx1k6w8= From: Vinod Koul To: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Taniya Das , Andy Gross , Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: qcom: gcc-qcs404: Use floor ops for sdcc clks Date: Fri, 6 Sep 2019 10:26:59 +0530 Message-Id: <20190906045659.20621-1-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Update the gcc qcs404 clock driver to use floor ops for sdcc clocks. As disuccsed in [1] it is good idea to use floor ops for sdcc clocks as we dont want the clock rates to do round up. [1]: https://lore.kernel.org/linux-arm-msm/20190830195142.103564-1-swboyd@chromium.org/ Signed-off-by: Vinod Koul --- drivers/clk/qcom/gcc-qcs404.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 Reviewed-by: Bjorn Andersson diff --git a/drivers/clk/qcom/gcc-qcs404.c b/drivers/clk/qcom/gcc-qcs404.c index e12c04c09a6a..bd32212f37e6 100644 --- a/drivers/clk/qcom/gcc-qcs404.c +++ b/drivers/clk/qcom/gcc-qcs404.c @@ -1057,7 +1057,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = { .name = "sdcc1_apps_clk_src", .parent_names = gcc_parent_names_13, .num_parents = 5, - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_floor_ops, }, }; @@ -1103,7 +1103,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = { .name = "sdcc2_apps_clk_src", .parent_names = gcc_parent_names_14, .num_parents = 4, - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_floor_ops, }, };