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: 11134495 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A139F1398 for ; Fri, 6 Sep 2019 04:58:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6C1432081B for ; Fri, 6 Sep 2019 04:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567745915; bh=zvy0GlP/XHjEuOF/F5T+o2/beVvliDTkHocl2QsHJ3k=; h=From:To:Cc:Subject:Date:List-ID:From; b=ufAwgrcRkq83BlBRpDjH4NfVxXh1iKLGmDhN36scTF61pgLqUOURHa1CcBgguuV1X htotcb5UAj3djCFivu15z4QSXcV15uYvtyIM4RyPsd+QN4LZHa0UHyfhfW3HolFcKz 5mksxHI4BapbDPMq6jacQ2BNVBYsVVcR3EamPX7E= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727514AbfIFE6e (ORCPT ); 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 Reviewed-by: Bjorn Andersson --- drivers/clk/qcom/gcc-qcs404.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }, };