From patchwork Wed Dec 18 19:04:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lubomir Rintel X-Patchwork-Id: 11301675 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 3A8C517EF for ; Wed, 18 Dec 2019 19:05:12 +0000 (UTC) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E50602465E for ; Wed, 18 Dec 2019 19:05:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux.kernel.org header.i=@linux.kernel.org header.b="nPOaTm+d" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E50602465E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=v3.sk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+26986+1040+1554929+3438807@linux.kernel.org X-Received: by 127.0.0.2 with SMTP id AUu5YY1556264xWIrJxhHCiH; Wed, 18 Dec 2019 11:05:11 -0800 X-Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mx.groups.io with SMTP id smtpd.web11.1010.1576695902191825374 for ; Wed, 18 Dec 2019 11:05:02 -0800 X-Received: by mail.kernel.org (Postfix) id 9845B2465E; Wed, 18 Dec 2019 19:05:01 +0000 (UTC) X-Received: from shell.v3.sk (unknown [167.172.186.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C01A821D7D for ; Wed, 18 Dec 2019 19:05:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C01A821D7D X-Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id A0285DD70C; Wed, 18 Dec 2019 19:05:02 +0000 (UTC) X-Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id qm_tt94XEMSD; Wed, 18 Dec 2019 19:05:01 +0000 (UTC) X-Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id B298CDFC5E; Wed, 18 Dec 2019 19:05:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at zimbra.v3.sk X-Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tXSgnu7WdbjR; Wed, 18 Dec 2019 19:05:01 +0000 (UTC) X-Received: from furthur.lan (unknown [109.183.109.54]) by zimbra.v3.sk (Postfix) with ESMTPSA id 372B4DFB12; Wed, 18 Dec 2019 19:05:01 +0000 (UTC) From: Lubomir Rintel To: Linuxkernel+Patchwork-Soc via Email Integration Cc: Arnd Bergmann , Michael Turquette , Stephen Boyd , soc@kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Lubomir Rintel Subject: [PATCH 1/2] ARM: mmp: do not divide the clock rate Date: Wed, 18 Dec 2019 20:04:53 +0100 Message-Id: <20191218190454.420358-2-lkundrak@v3.sk> In-Reply-To: <20191218190454.420358-1-lkundrak@v3.sk> References: <20191218190454.420358-1-lkundrak@v3.sk> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: patchwork-soc@linux.kernel.org List-Id: Mailing-List: list patchwork-soc@linux.kernel.org; contact patchwork-soc+owner@linux.kernel.org Delivered-To: mailing list patchwork-soc@linux.kernel.org Reply-To: patchwork-soc+owner@linux.kernel.org X-Gm-Message-State: Ik3N3WyT6ofMMXPqxuohHpsKx1554929AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux.kernel.org; q=dns/txt; s=20140610; t=1576695911; bh=tYNn281GP8E55BQXwauEeRZjnKW6wuTHWpbP60IddD0=; h=Cc:Date:From:Reply-To:Subject:To; b=nPOaTm+dSR/IVowDZUqN6aWq/UHtKpwd2MgTV1QHuCOdyd55LsSOD7fufostXFc34Mt FRJnvyXKf/5P1skoa0CYRK9w2FkCzbQbThFsArCf6lk1+sVgS5KwqDEgjK9qImv+MpTNV A00xOwHEWChyS2BTOndnFABxr4BIymmh+nU= This was done because the clock driver returned the wrong rate, which is fixed in "clk: mmp2: Fix the order of timer mux parents" patch. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mmp/time.c b/arch/arm/mach-mmp/time.c index 110dcb3314d13..c65cfc1ad99b4 100644 --- a/arch/arm/mach-mmp/time.c +++ b/arch/arm/mach-mmp/time.c @@ -207,7 +207,7 @@ static int __init mmp_dt_init_timer(struct device_node *np) ret = clk_prepare_enable(clk); if (ret) return ret; - rate = clk_get_rate(clk) / 2; + rate = clk_get_rate(clk); } else if (cpu_is_pj4()) { rate = 6500000; } else {