Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1523872pxb; Thu, 16 Sep 2021 09:12:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVZ1wNHdn6ejxNoR/5mD6EAM439wYrTGCTZ6PEExk4btn5EELi3y0PjIvDwXAtRtdxfPbn X-Received: by 2002:adf:f0c7:: with SMTP id x7mr7054151wro.432.1631808731912; Thu, 16 Sep 2021 09:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631808731; cv=none; d=google.com; s=arc-20160816; b=1CA+GfLz0QTw9/rj1M+dtz51IU8dGtfSf26fB3Yp4HXdxn3K0n1dRwNq0pi2kplWud x+G7xYa8NzKwmVoLMooNnVUlCBtPZptxpL3Dl7ISmjHNNPwe6A+3GesVBl2Z5G4TOgdq VALOyyI5mjn3iYXvfLvbigjztxmTFfr3ljcjB34UBEDG707R+0bAzZ9WYn6hTZ1zsjAg cnd6iMY51NaX9dGNEJM6WZgqkNtDJjXuo+0IAovNLOIuSZKQOIqMXnNnlSlm5chjYt3T TjJU5wyJzlwQixFygYAzTqM5KboFhwt0qbWSj9IwllVVfACfnJIXiQ9a7Xg0PSRgXWOr 5ABQ== 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=qWRj+Z3SMCfCzclPqEXouZf+SDWwaWJA0ZtrLMDT9ZQ=; b=gCWuWToCOr1Qh4FJzoMeELDqwu4EwQYmNE77FKQ/HsGek/8Tly55ofCd5eQR97LCDp LVrAT2lJ3EDtl1rnXRHdBEuVyefyPU0nIi7Ewh6mtWH8VgMz7O0xmP0VdLarjZlIMTU5 P2v2/ahnTpkrZUZAgoQ5IaYtrO8UEP9X5jhCNppz06nHuM4T20pCkjye9hOIr3XZdS09 XkI9PjrxSKW9peOIudN8ThPb/WUrnkotRgPiA8ixG+FPwjlQcIcydvBuQMWSmXwnYsLt jXkoneinPEvBJmUq0cWxJgSUDiPjNtRjpzmJYRT0Yga2S3scKCvselPV2UsdC2YRQy1C CcLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tigFHyPr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 j16si3648207edr.114.2021.09.16.09.11.46; Thu, 16 Sep 2021 09:12:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=tigFHyPr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S235687AbhIPQKp (ORCPT + 99 others); Thu, 16 Sep 2021 12:10:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:47058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234166AbhIPQHQ (ORCPT ); Thu, 16 Sep 2021 12:07:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E780061241; Thu, 16 Sep 2021 16:05:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808355; bh=rtOLzNItH6yW4WKLFulortgA2dK8mRuL7jlquMxKKyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tigFHyPriKwRrAMkta/RNPnYKbjwAon9LBHWcYyZdI771qT/OFrae+JMNbgW+f+Ka w7RzcxbWTknQy1rJr4MpUlevPKrJ0RyVNhL+4wJw+P1GzBkRN7m6nI12x9dRNmp5zt 5OTtO/TKZBEZAPY0OIj1wuNMvEnV0SDeI7MCzn/Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiko Stuebner , Peter Geis , Sasha Levin Subject: [PATCH 5.10 059/306] clk: rockchip: drop GRF dependency for rk3328/rk3036 pll types Date: Thu, 16 Sep 2021 17:56:44 +0200 Message-Id: <20210916155755.954618003@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peter Geis [ Upstream commit 6fffe52fb336ec2063270a7305652a93ea677ca1 ] The rk3036/rk3328 pll types were converted to checking the lock status via the internal register in january 2020, so don't need the grf reference since then. But it was forgotten to remove grf check when deciding between the pll rate ops (read-only vs. read-write), so a clock driver without the needed grf reference might've been put into the read-only mode just because the grf reference was missing. This affected the rk356x that needs to reclock certain plls at boot. Fix this by removing the check for the grf for selecting the utilized operations. Suggested-by: Heiko Stuebner Fixes: 7f6ffbb885d1 ("clk: rockchip: convert rk3036 pll type to use internal lock status") Signed-off-by: Peter Geis [adjusted the commit message, adjusted the fixes tag] Link: https://lore.kernel.org/r/20210728180034.717953-3-pgwipeout@gmail.com Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- drivers/clk/rockchip/clk-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-pll.c b/drivers/clk/rockchip/clk-pll.c index 4c6c9167ef50..bbbf9ce42867 100644 --- a/drivers/clk/rockchip/clk-pll.c +++ b/drivers/clk/rockchip/clk-pll.c @@ -940,7 +940,7 @@ struct clk *rockchip_clk_register_pll(struct rockchip_clk_provider *ctx, switch (pll_type) { case pll_rk3036: case pll_rk3328: - if (!pll->rate_table || IS_ERR(ctx->grf)) + if (!pll->rate_table) init.ops = &rockchip_rk3036_pll_clk_norate_ops; else init.ops = &rockchip_rk3036_pll_clk_ops; -- 2.30.2