From patchwork Tue Feb 28 13:30:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9595621 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 08081601D7 for ; Tue, 28 Feb 2017 13:34:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E927D28504 for ; Tue, 28 Feb 2017 13:34:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DDC4928520; Tue, 28 Feb 2017 13:34:49 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham 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 70A5F28504 for ; Tue, 28 Feb 2017 13:34:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752471AbdB1NcX (ORCPT ); Tue, 28 Feb 2017 08:32:23 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:33811 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752569AbdB1Na5 (ORCPT ); Tue, 28 Feb 2017 08:30:57 -0500 Received: by mail-wm0-f54.google.com with SMTP id 196so23750581wmm.1 for ; Tue, 28 Feb 2017 05:30:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=J2E3xmhAh4Pn2ar9RSkeSFjvfiu/UKGEKGNcD0xWuRM=; b=U/y+RyQ34uk/nHIdoWEaNHDbIYTfVkjBptMrj6H1hEWFV00L/fu44PwMYjGEBglz+2 3TBEA4uVL6lnBOxbJc3+FGkYLREG9r0c6G6XoCIr5AuYoohuw48UmBC2SLOhrMdgYDh6 sS1/68v9syH8ymKYPa2FaMv/AvS5OAhi48mXvHhlNYFhvXCc9v7uwmjhdk7aUm801OIV J1kW9teOLaKNS1GbtDRk0kGFuSqcBmBpqdU0+s8LdKAk/sHWMxfFwsZQwKF7RPNYIguW ktcZS77DPrGWVqP2Xcogd7Vq0Y1N5K4o/473I4UR72oRpElPZyCm6ueox4RaDTb4rGtT vtWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=J2E3xmhAh4Pn2ar9RSkeSFjvfiu/UKGEKGNcD0xWuRM=; b=o7yR0vmTv4zaK8PxDmw30HrMy6y2tJniNbTrAq9izd2bSYaFy8MvRcssmcDd88S/35 D8TJn0HkmAC3pt/a9Y0XZK12+D79eVYtixkxX7q4hx8/ZKfnskkeKX8DaOodgnm0NgUH x1HpgN4iWYP++hw15CaZRmO03Vx4QIx6igLgc/sCL/mIsWR3Cf9fYRBF0Ow5a0D/Fonr cl6JAf/NiPKZtXBz2/QDWIM6LC7b3mvy0XOR1ycijWpN/ziI6zXM/tzHLr5Oc/GgEFAQ R8hz0D6e+tzRpgJDC+uHm006H9+dsH4+0EEWHThDBb04ewvhgPH0nc7iVOK+KgfSMIfY ZSZQ== X-Gm-Message-State: AMke39mtcRziSUyLNhibywtSzAFE9Eo+txoM5u418GMA55nsv5q2L7Ob751uITlqervjRk9E X-Received: by 10.28.17.208 with SMTP id 199mr2503705wmr.9.1488288626246; Tue, 28 Feb 2017 05:30:26 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id k70sm18550982wmc.3.2017.02.28.05.30.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Feb 2017 05:30:25 -0800 (PST) From: Jerome Brunet To: Michael Turquette , Stephen Boyd , Kevin Hilman , Carlo Caione Cc: Jerome Brunet , linux-clk@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/7] clk: meson: mpll: correct N2 maximum value Date: Tue, 28 Feb 2017 14:30:01 +0100 Message-Id: <20170228133002.17894-7-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170228133002.17894-1-jbrunet@baylibre.com> References: <20170228133002.17894-1-jbrunet@baylibre.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Gxbb datasheet says N2 maximum value is 127 but the register field is 9 bits wide, the maximum value should 511. Test shows value greater than 127, all the way to 511, works well Signed-off-by: Jerome Brunet --- drivers/clk/meson/clk-mpll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/clk-mpll.c b/drivers/clk/meson/clk-mpll.c index 342b85d4e22a..540dabe5adad 100644 --- a/drivers/clk/meson/clk-mpll.c +++ b/drivers/clk/meson/clk-mpll.c @@ -68,7 +68,7 @@ #define SDM_MIN 1 #define SDM_MAX 16383 #define N2_MIN 4 -#define N2_MAX 127 +#define N2_MAX 511 #define to_meson_clk_mpll(_hw) container_of(_hw, struct meson_clk_mpll, hw)