From patchwork Mon Oct 10 20:09:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Jarzmik X-Patchwork-Id: 9369929 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1142660487 for ; Mon, 10 Oct 2016 20:17:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03D46293DE for ; Mon, 10 Oct 2016 20:17:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ECECF293FE; Mon, 10 Oct 2016 20:17:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3E0D293DE for ; Mon, 10 Oct 2016 20:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752132AbcJJUQz (ORCPT ); Mon, 10 Oct 2016 16:16:55 -0400 Received: from smtp10.smtpout.orange.fr ([80.12.242.132]:56015 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751725AbcJJUQy (ORCPT ); Mon, 10 Oct 2016 16:16:54 -0400 Received: from belgarion.home ([90.38.43.100]) by mwinf5d87 with ME id tw9K1t00N29gKHm03w9N0T; Mon, 10 Oct 2016 22:09:23 +0200 X-ME-Helo: belgarion.home X-ME-Date: Mon, 10 Oct 2016 22:09:23 +0200 X-ME-IP: 90.38.43.100 From: Robert Jarzmik To: Michael Turquette , Stephen Boyd , "Rafael J. Wysocki" , Viresh Kumar Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Robert Jarzmik Subject: [PATCH 3/6] clk: pxa: b bit of clkcfg means fast bus Date: Mon, 10 Oct 2016 22:09:06 +0200 Message-Id: <1476130149-31834-4-git-send-email-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1476130149-31834-1-git-send-email-robert.jarzmik@free.fr> References: <1476130149-31834-1-git-send-email-robert.jarzmik@free.fr> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The meaning of this bit was inverted : - when set to 0, system bus clock is half of the CPU run clock - when set to 1, system bus clock is the CPU run clock Signed-off-by: Robert Jarzmik --- drivers/clk/pxa/clk-pxa27x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/pxa/clk-pxa27x.c b/drivers/clk/pxa/clk-pxa27x.c index 3930053543a3..3b36e8d0f81e 100644 --- a/drivers/clk/pxa/clk-pxa27x.c +++ b/drivers/clk/pxa/clk-pxa27x.c @@ -291,9 +291,9 @@ static unsigned long clk_pxa27x_system_bus_get_rate(struct clk_hw *hw, if (osc_forced) return parent_rate; if (b) - return parent_rate / 2; - else return parent_rate; + else + return parent_rate / 2; } static u8 clk_pxa27x_system_bus_get_parent(struct clk_hw *hw)