From patchwork Mon Jul 12 06:07:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 472954 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp2675239jao; Mon, 12 Jul 2021 00:12:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQF5agMj2h0qFza35WQSaexlop88iyskaEAOnKl/fWDWwv/aFx1yqx5L5Vs1RjHk5EhvlO X-Received: by 2002:a92:3004:: with SMTP id x4mr37596240ile.269.1626073947565; Mon, 12 Jul 2021 00:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626073947; cv=none; d=google.com; s=arc-20160816; b=Bc/hVSH4Vg1I+qRRq1D9E1tku9ADe+4KzMp41SN5TtceEEwCFwYnX4/YC0rqMpnRdc CLtZSKNMETg8MzYrvU0twIr8JZqX0B5OsQ2k+Z3aVQR3PeRdM0aDvoFJ5PGDaXrND+Bp 9IuBqFkme0d3NEoJe4MaBQBY2N2VPrM8Ktt+Qr1WluAYkDcRC0KeICfvXG2YGzLmiGuA a1i2Hcn8tVQigqYMySMgA3d4Ng59CffOPkhctuNirJSSi2NDJR/TSJvMLWE3zArMy494 ohwYhNpTYMlihg5UILcZLILr3wRaPBzjd+7YYt20eRoq30iGDTJ0alueev4cg5DhSUf5 3uFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dL6lwsWINyJ2A22vZCKy9dP098WxSycc4KHRasZqKCc=; b=Xq8jb/BN48TL1sH+N0O4S6esZyv/uf9cpCoBB4wB3NPdbw3Sdg8Etcr98hVXlLCPzr SimBo1FPXQodJURl1rZPKlAOSyZEcjP+fiIY5mUDrusEVkl9Elf/0KUS874Mw94v5iwl p0Ic80IlIHg9uCz12KOmyYJiWRtwF7zriLI9UHwv+OKnQ8uJ8kgRKNlqINUIiai2XyIv bY5y/cvm4G3dmJtRSInI3d//vsIwHjfStW+EJSyB5Vg4o8yw/66PhwhhVb+5OtJRxpjF lryBum0F2GcaPWI51IliiTJTeHwZlHr2dBRgr/bVeBcCtPtVAETZl897UHPurtKQlP3a 7z2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EKWKFth+; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si16580694jas.65.2021.07.12.00.12.27; Mon, 12 Jul 2021 00:12:27 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EKWKFth+; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240440AbhGLHOJ (ORCPT + 12 others); Mon, 12 Jul 2021 03:14:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:48306 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240291AbhGLHM4 (ORCPT ); Mon, 12 Jul 2021 03:12:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 232AC610CD; Mon, 12 Jul 2021 07:10:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626073806; bh=YxuJHu+DmvdMebJsd2BH0llh0R7tGbB80j9lSoI8sY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EKWKFth+jEc9wQMh9rce/EQhpQecoVe5OrQa+u6fYb+aZhfFZcFy3dao+i4k1s3Zo WeKow76Sly6KVghFHxuHzj9v8gaqUswiUMgxuwLQLQ+J0ejzxuOZ7YVgQCc1LZRuob 9qg+VD9Rjj8iWeHkDG/9BBeQZmjTzRVFg53Phba4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jerome Brunet , Neil Armstrong , Sasha Levin Subject: [PATCH 5.12 367/700] clk: meson: g12a: fix gp0 and hifi ranges Date: Mon, 12 Jul 2021 08:07:30 +0200 Message-Id: <20210712061015.434875897@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210712060924.797321836@linuxfoundation.org> References: <20210712060924.797321836@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jerome Brunet [ Upstream commit bc794f8c56abddf709f1f84fcb2a3c9e7d9cc9b4 ] While some SoC samples are able to lock with a PLL factor of 55, others samples can't. ATM, a minimum of 60 appears to work on all the samples I have tried. Even with 60, it sometimes takes a long time for the PLL to eventually lock. The documentation says that the minimum rate of these PLLs DCO should be 3GHz, a factor of 125. Let's use that to be on the safe side. With factor range changed, the PLL seems to lock quickly (enough) so far. It is still unclear if the range was the only reason for the delay. Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller") Signed-off-by: Jerome Brunet Acked-by: Neil Armstrong Link: https://lore.kernel.org/r/20210429090325.60970-1-jbrunet@baylibre.com Signed-off-by: Sasha Levin --- drivers/clk/meson/g12a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.2 diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index b080359b4645..a805bac93c11 100644 --- a/drivers/clk/meson/g12a.c +++ b/drivers/clk/meson/g12a.c @@ -1603,7 +1603,7 @@ static struct clk_regmap g12b_cpub_clk_trace = { }; static const struct pll_mult_range g12a_gp0_pll_mult_range = { - .min = 55, + .min = 125, .max = 255, };