From patchwork Thu Mar 9 10:41:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9613057 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 1A4A8604D9 for ; Thu, 9 Mar 2017 10:53:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B6B0285CE for ; Thu, 9 Mar 2017 10:53:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00505285EF; Thu, 9 Mar 2017 10:53:53 +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 99A00285CE for ; Thu, 9 Mar 2017 10:53:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753583AbdCIKsn (ORCPT ); Thu, 9 Mar 2017 05:48:43 -0500 Received: from mail-wr0-f174.google.com ([209.85.128.174]:36723 "EHLO mail-wr0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753254AbdCIKsk (ORCPT ); Thu, 9 Mar 2017 05:48:40 -0500 Received: by mail-wr0-f174.google.com with SMTP id u108so42137753wrb.3 for ; Thu, 09 Mar 2017 02:48:39 -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=BQlbaHveeo0Rkhupco4btUeec2L6gyhbmNeINGR+8S0XT/gYnAxGKrHoaZ9/AE/Q81 YQ1kbjzEQl8+Q47NimKGTPJqQKWHH1ypSTRQJPp8WzP8kHGr5r39onO4WsyqKoCLZAv1 zoqDurM2a7RodLoXzTYqRj4vPq6xKIxXU455XTklmGRa1f53AgsJ5MyE9zDb0jyJMr7h IhzljYbTd1TyxD8AkHVGjVWwyGaxy0+tIZmCQqVLdImBWQnPfE+HnW+TK5yMb4KES7nf Y4zRd+IdMY0F4bVL+IQZEb4F1YUK1R+qXO31nlqqWAogRPW+wh2y6fh+rYAud7IIoFmn 1gJw== 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=XrU+8vbueJJl2Ga7Ic4bmYV1eZmUW4GFVCIEbN0pspGcu9neXvOJgH5O31zN0zGqDN JbLVO6lKW3y0ImO6Zk8CdcigRjzjZuPOkkUkIfCuAsK5GdvEh3cB0cVAGZtckvtmiAR+ HMMPIa9grSx5bS9C74awAlzGVbJnmnT/nt/+RPxgXjeHOi5BRdEUPOqIcUVTc1fdhDgw AbPKMLnooi4VOyKpHaCSDg1rrwAN1LJkt5CzCjk8FmPlDpyQKw+yJPNoufRltWWp88XC sYIb9gAUUp3npxThjG/sYql/GsKg5rLEWUfCDhG/sPQjvTSbC7NAvy50vqkglOC/h1yb GHUA== X-Gm-Message-State: AMke39lW+7Ax0agjwMtOXsU2Yw02dLfl6B2w4DEArCUU5NczMgKtMzMKNai7BpHdOgt8wqxw X-Received: by 10.223.134.231 with SMTP id 36mr11343720wry.46.1489056131778; Thu, 09 Mar 2017 02:42:11 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id e6sm7724113wrc.30.2017.03.09.02.42.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Mar 2017 02:42:11 -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 v2 8/9] clk: meson: mpll: correct N2 maximum value Date: Thu, 9 Mar 2017 11:41:53 +0100 Message-Id: <20170309104154.28295-9-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170309104154.28295-1-jbrunet@baylibre.com> References: <20170309104154.28295-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)