Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1309579rwb; Wed, 28 Sep 2022 16:46:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66xgz0uf8Y6O37dMCvVKB9hQ/02qpFA1fmxh7P3xRIU+CT5/BdTP9btIzMXLqpGvW/kYbx X-Received: by 2002:a17:907:7d8b:b0:782:e9ed:88d7 with SMTP id oz11-20020a1709077d8b00b00782e9ed88d7mr335934ejc.186.1664408774293; Wed, 28 Sep 2022 16:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664408774; cv=none; d=google.com; s=arc-20160816; b=0S62264/pa25fQpOf2Q2I7J0RpSZvxquFhwD90rf4yv1KZLukY6mAlYOiIOkA6eJ1E 0+h0Qf6h/AkzsE59Uts7ino7jHDd9BEQoXCBCOIT/IYlz84wn1rolTyM1glKAoFBkhlM b4DTWysGdHuUkQflvAOu8sNily6D++BM2AG0GBZ1/e+N8ZMNu3klho5kdTyt7b9rrVIn O9CKqPHP3DlSakN2PGMzuQ5u8rLmf8plNXI0/RvlgYKaLbBcG+JV8vZeWzAc6GnmvTTx LfnN+qtCDqmLGP5MrPoI5xX5UqfAAd+edr5dJl1TJYtU4VWDSR49ZeZoSnRCIC/M6jW8 w9Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=NaykREuRBBPpeJBtk+CLEf+97EYWNNqVH6121J8EZRU=; b=xyq3Jr67puWgTaZ6AhB86NRRAeupqardIyMNlTLIN/lKN8jq6XY1wwWPy09zSUwCbr r+VXd3HRSVbqaC7Xi28uHyzO6oH7LqPMZBoTNbRHiB3ubbpsLaRL3irUUGL4XE7lnyNN aSgKFBdSRi+vwT1YCNATohCKOdKXqrpYApcwNSDm44fLz2UHeEZAnNVH2iwGOdH5kjfv dodEVIHpiY9eINKmM5qEC5BHvtIU3cG7pUCRddF8xHpIhnZC69tnMfDSNll644WEqD7R j2tQJFTxkmq473CqLDPDAZT7MZI7xSQq5rT9vkvqsvClitE8cq4u4NJ2VEhiFlHhvo6j X6sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=icHtNeOe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h13-20020a170906110d00b007819684b56fsi5337799eja.225.2022.09.28.16.45.48; Wed, 28 Sep 2022 16:46:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=icHtNeOe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234060AbiI1XnE (ORCPT + 99 others); Wed, 28 Sep 2022 19:43:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234259AbiI1XnB (ORCPT ); Wed, 28 Sep 2022 19:43:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CF91F08AA; Wed, 28 Sep 2022 16:43:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 48FB5601B5; Wed, 28 Sep 2022 23:43:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E92FC433C1; Wed, 28 Sep 2022 23:42:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664408579; bh=NaykREuRBBPpeJBtk+CLEf+97EYWNNqVH6121J8EZRU=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=icHtNeOeVcY5Yyr5KbjX9VLE0HNZ2i7DK6Dy+oxCiJ2djz0wE5TpZcuIY7aOjQ7Vi pMB8yuEn76VpWmpoLW7YVtZ7N0QW2GDGC4+cOCDRzn18/ndV4dSGPTHZhm+EggPPG/ LYVjJVADbPIeoYq7MIhLaxMt0td+aiH2D/Wj61x05bdE8RMedtDf4cjVZiGNBSUrK7 nEcmb9blSuNfrUsaX9lK07fzijbgvihR981s9uVPC9UfLQBb4ZKAWRWpVnqC0LIN8E Yns159I2ZDPy2qQrLrQcYI4kMFOJemittcoD7SmoPQVEGCDvHXR2siVjwDwvywypDa QWqmgZJDL9YFw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220928200122.3963509-1-jernej.skrabec@gmail.com> References: <20220928200122.3963509-1-jernej.skrabec@gmail.com> Subject: Re: [PATCH] clk: sunxi-ng: h6: Fix default PLL GPU rate From: Stephen Boyd Cc: mturquette@baylibre.com, r.stratiienko@gmail.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Jernej Skrabec To: Jernej Skrabec , samuel@sholland.org, wens@csie.org Date: Wed, 28 Sep 2022 16:42:56 -0700 User-Agent: alot/0.10 Message-Id: <20220928234259.9E92FC433C1@smtp.kernel.org> X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jernej Skrabec (2022-09-28 13:01:22) > In commit 4167ac8a657e ("clk: sunxi-ng: sun50i: h6: Modify GPU clock > configuration to support DFS") divider M0 was forced to be 1 in order to > support DFS. However, that left N as it is, at high value of 36. On > boards without devfreq enabled (all of them in kernel 6.0), this > effectively sets GPU frequency to 864 MHz. This is about 100 MHz above > maximum supported frequency. >=20 > In order to fix this, let's set N to 18 (register value 17). That way > default frequency of 432 MHz is preserved. >=20 > Fixes: 4167ac8a657e ("clk: sunxi-ng: sun50i: h6: Modify GPU clock configu= ration to support DFS") > Signed-off-by: Jernej Skrabec > --- Applied to clk-fixes