Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1930949imm; Thu, 24 May 2018 03:07:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq5VPoykjvHAYed5ClpYMf5X6ebYI56Uzm1dbPQgnv6qZsU1tlbRgP5kRftyIRrV/91Myo/ X-Received: by 2002:a62:2197:: with SMTP id o23-v6mr6637326pfj.202.1527156469882; Thu, 24 May 2018 03:07:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527156469; cv=none; d=google.com; s=arc-20160816; b=Ho9AT8XdvfVz/YbXc6D/fqjGDymiHtHW8SPBmOQ6odA58Pr50P7jQu7XCt5CMSKE5K 6206hURqDvbe+MWpekPdNca30qW7WZREaA3/oXsjGze2naB3o0S2t7zhRu9Gklk3T7B6 5JbxLtHqr3E7id/MsQr8ZkBu7zQk+GKTfvgQR4qqF22UNE3ZCCfs2Nvj9RWEqvHIga+b 4ny6F5a35GogWqgidTO2/9hTqHzLbw9Z9bdjBFF9pNMUNYpeSnsgrl0hE0PSJc8WwKjG HOyLe1zwWER/3jwSNJ+ZNjQ+bTi8Oaz9W/AFT8tChniPk79hKFiXy5of/qRAbaXgWD63 CjDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=TdrnXz92aM6E5pJ6P94hk+8IfH4Hj02W5PP1Oyncm6s=; b=KWc11esUM9/k6mVsRPvt95lGR4DVMUDC774vHJk/U5MvAehWzQSqI2W4LKbL9UVfWg 8Pjb9+jisj4zkOYikOxkD7kKCwnmuGtjv9LD2KTLMnJM12yImKKDN4V6oM3iPgvJyutB Y6Z1ua9sUzyvoCR+nTRrnNb0kRQB3sEllPg5VuY2hCm6IF0td6FxAzltDiFhsBXB9ecj sSr2oF+8F8NQXolnoMuiT6ZxfyfQMpugW0IvO1nKFtf0OLQ48rT2lExWVMwS/zQXR4Tf 1HN49goTzaVf3ha05OGuhyX7Xj/dc00/IpWR9ojelwNYFIu4gtwtZSB2aFHksCvXhWAG 88Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Mspgdgh7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4-v6si19786898plo.526.2018.05.24.03.07.34; Thu, 24 May 2018 03:07:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=Mspgdgh7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031536AbeEXKGy (ORCPT + 99 others); Thu, 24 May 2018 06:06:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:54170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031535AbeEXKEy (ORCPT ); Thu, 24 May 2018 06:04:54 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 B507620870; Thu, 24 May 2018 10:04:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527156294; bh=V6PzYuTxlHdxmWcwWqf9iRYlqU+4VJ2pl6RnLuDeKMg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mspgdgh79aK/aw2OrZ7rt6b5hFegTCmvD5m3QYacE/t3GfvdzFm9D0qc1OwTUjeau 1l98jQjSso75eCA5jASTj0J0bByj4Bfvm6nUv9A7Fv1v9HmTUCFoyyvHipqmCl2Htx tbpz3SsTSXvUpgPsdXU1RuCNm0PL2hhBxTODsbOY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jerome Brunet , Sasha Levin Subject: [PATCH 4.16 133/161] clk: meson: axg: add the fractional part of the fixed_pll Date: Thu, 24 May 2018 11:39:18 +0200 Message-Id: <20180524093034.278560986@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093018.331893860@linuxfoundation.org> References: <20180524093018.331893860@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jerome Brunet [ Upstream commit 6b71aceceb09918daf37a40a1221077599040be3 ] The fixed_pll also has a fractional part. On axg s400 board, without this parameter, the calculated rate is off by ~8Mhz (0,4%). The fixed_pll being the root of the peripheral clock tree, this error is propagated to the rest of the clocks Adding the definition of the parameter fixes the problem Fixes: 78b4af312f91 ("clk: meson-axg: add clock controller drivers") Signed-off-by: Jerome Brunet Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/clk/meson/axg.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/clk/meson/axg.c +++ b/drivers/clk/meson/axg.c @@ -129,6 +129,11 @@ static struct meson_clk_pll axg_fixed_pl .shift = 16, .width = 2, }, + .frac = { + .reg_off = HHI_MPLL_CNTL2, + .shift = 0, + .width = 12, + }, .lock = &meson_clk_lock, .hw.init = &(struct clk_init_data){ .name = "fixed_pll",