From patchwork Mon Jul 12 06:09:34 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: 472838 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp2643501jao; Sun, 11 Jul 2021 23:22:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyM57F7LCHkHTdLCFi/kSiW4ZHxZuGlY+wzsiAlEFm2Zvxqzxs+OXPmylXKjzqam6V2lXpI X-Received: by 2002:a05:6402:58:: with SMTP id f24mr65001857edu.234.1626070960675; Sun, 11 Jul 2021 23:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626070960; cv=none; d=google.com; s=arc-20160816; b=WEUfyT8motaKXiE0uL5A0dHMUkG+heum5Ph+psi4EYarrVrdZei5bxg57MFaIrwk3F njUQLbxA4ThoV4YyEhMc0Pfalrx3p2vVnhgIlnobUo3at3jGlAEdpYKjaEDC+s4jH8LH Jm8dgMNuYbod9z8g29ih9Zb3dO4T6yrIe8xmebpvxYIEyk4DfzuUmF0xuaE6SN80l/fq 20VsDPUWZHkFAAkTNtw36w9hN3vWOpoHnuC4X4XUFuWhj9LnUVdMd84hCXlSv05QURWu TwasGF3Xb7p7ZAVXJDJRSh1pvVJ0AqsvtoDUuFg58B/yBcvasZbc3mv/lxANvPcYMbt/ ELCw== 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=aIpdBQJi99SM2xuO8IEYq9Xj/NpNsajJQKTVCARbOZI=; b=0O4+XFD5yrW/qSvWvVxXm8kVgSnnjJ/2TxwyqgPV9fxWqv8DS73f65/MpL+3qu8eAy s6lC6b70rUiCkQ8xsNuN5pmhwMtNDOkscNcy6swcVxaIVfALKI5ywhyo94xCaynAfPAy xehnhrA4tEuCdVOrT/6NM2uBRQ99GNyVQc0Y7WJ31jLfhBhdJoyfb+BWtxQhLnGAI2gM ns63DS7SM4VgoCDhUoXUIFyFhwQFODQhCWAdLJXD8xUT5TbjBhEgSub3B9l95r1VnPvD Q+5M9zFYLLEZR4ddZvLgTIHtCtX88cX3amZRQtA1AQi5Zmc2KHBG/fiI8o/My7+Dz7a1 K/Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="cE/esfjp"; 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 hg22si15826966ejc.382.2021.07.11.23.22.40; Sun, 11 Jul 2021 23:22:40 -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="cE/esfjp"; 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 S235045AbhGLGZZ (ORCPT + 12 others); Mon, 12 Jul 2021 02:25:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:41280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235244AbhGLGYh (ORCPT ); Mon, 12 Jul 2021 02:24:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1B55E6112D; Mon, 12 Jul 2021 06:21:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626070903; bh=FhnN1XQCTvm1+21zvR3i9hSTgDVOL8eTTguF8dgaDtc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cE/esfjpkf2KvhIWFxPg4JqaWarCji40nv68CGpcyqfbQ1FMHCC6qRjh+cZDPbO60 yq5lTm6iejRqdWhvvIBlUHAi1W/NCmECmYXPxqt3QjecUPloA5Eo+eurn3t9C0mHXk 4fWGsg+vwT9Y2adEFJkM5LbFUE4FfMfpvcrnuzWQ= 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.4 190/348] clk: meson: g12a: fix gp0 and hifi ranges Date: Mon, 12 Jul 2021 08:09:34 +0200 Message-Id: <20210712060726.230277110@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210712060659.886176320@linuxfoundation.org> References: <20210712060659.886176320@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 3143e16065de..a55b22ebf103 100644 --- a/drivers/clk/meson/g12a.c +++ b/drivers/clk/meson/g12a.c @@ -1602,7 +1602,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, };