From patchwork Mon Jul 12 06:07:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 473026 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp2703572jao; Mon, 12 Jul 2021 00:56:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQgfN4PbER48uoOLskejxhBWDlTnQ89leIRHTOfM5rigpAVxffFm8OihZ0gzsdI6UyRthj X-Received: by 2002:a05:6402:451:: with SMTP id p17mr62395664edw.332.1626076450720; Mon, 12 Jul 2021 00:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626076450; cv=none; d=google.com; s=arc-20160816; b=CtzdnT8RgZ4G9jR+aeEgy3TIg/eQzMLbEXZ/uqmXPq6vKWwN9GokvrBuxTWYQRqsLF hiAkHI5I2kY38tXM5qGyH4tqpfN3q58LU7R5CaQG96tM8b6K1xwS/ZgTQ7u+edmvFwj3 wkTS7prCly32rXGsmtVSfjBBRPwbTiFVaHo1cQr5O3ULxblufuvVQAAOAr7aucWjMKkN 6WM85gAwbMzEZWFRRTDIyOFMnLAt5shx+t+m95rbjwn3St5vvroE1L8vyOQOcO3fCURS u6r13C+ESvzgEsmt16WbZgFkCHzxtKVNnY/rwxCGlbE7JQ54tjOo4YkCNbGGj8Pw8FCY xyTg== 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=BmT8bKZfii6a/clLr3h8eSCH1Y1Ig9WdIxhGgp4AUVISYIW9VwPsTRz/h8ON304N+H wBkIhAM9aBqZ8aEFEb/pM13w4ih5LnWxf2kTEB5wOsb0UF5Oq5XSpr0S8gS4lmcOggK4 Hv4d3wV1IIT2gmIgkt3pXJ2blth9fJNFOV4z7Y+oD4a2LtHrcNTWZHONKcAwpqDzTEkn VSy8EXf8kAE69RHkv+21zAP0B2SSolEi57GYlnQiqnZf/hUTfhRRmwx7rRnxgl/3B5+p Ho5MWtBWGjOFO7KRdKJFUYBPnQb/t77JbGhDbiG3nu0thmHOSstyGLdZWdduQRJn7yqo x2dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=d0GEiiih; 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 n21si13642925eda.13.2021.07.12.00.54.10; Mon, 12 Jul 2021 00:54:10 -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=d0GEiiih; 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 S1352419AbhGLHyp (ORCPT + 12 others); Mon, 12 Jul 2021 03:54:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:36654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350357AbhGLHu5 (ORCPT ); Mon, 12 Jul 2021 03:50:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3945861584; Mon, 12 Jul 2021 07:44:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626075894; bh=YxuJHu+DmvdMebJsd2BH0llh0R7tGbB80j9lSoI8sY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d0GEiiihDnPf2sp9jZzgbkSJu5b9XlH26bar/dcSLZczaSOJFGc+mR5PvC7XOZqUN sf5q5Mkgy7GZx3qT4QsYTHd/UGSuvYsNZ8g3+VTsaES5G63IlSPBiSoCjCUAYSXlkE qGR5AsYFkqfm85vfzQPX3xup9gqzHQYfKJzLIIA4= 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.13 409/800] clk: meson: g12a: fix gp0 and hifi ranges Date: Mon, 12 Jul 2021 08:07:12 +0200 Message-Id: <20210712061010.687826873@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210712060912.995381202@linuxfoundation.org> References: <20210712060912.995381202@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, };