Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1552437pxb; Thu, 16 Sep 2021 09:45:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8LpSP/D1woJgkGiAH+aqS7K1dflyw3TBmGWqcCRjZ9bhVlyCvJm+1ZFAUpciQVwpbXrFM X-Received: by 2002:a17:906:850a:: with SMTP id i10mr7427308ejx.256.1631810750318; Thu, 16 Sep 2021 09:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631810750; cv=none; d=google.com; s=arc-20160816; b=jXX3z2LnFBhH7bD0Esr+HaHsIkD5BoEJQcQ4EQkGEXZZiVxM8NHUIfXMZOcCggYpKO uB3wtejM26myOxZWqINuY+xCw0fIOZiBWsGixemHL9b/JXrYQKkbeDQjji3lAMFgjJQQ AL0ZXU0YNc+ifDA8uH8t6LYBnQXaQ4Xbmhf6vMAQV4MrIT7turea10okrEf8LEGoq2Pk yeeig3Hih9HMBKh9LQXLNhYlY7tM/iVO6opNWIOFB3W9KTDV4WF5aTvd2OtNmfC6dlEV EYA1dWm6AngAhexfJYEyNgQ9unMnBAMWYn0b+I0SLXO4jAgeS91AvFRIrMqH0aRmYtoU Bw3g== 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=soM6QxUdxjI2dVuaEBlWnIDdPpOTV0WSDzW4exI7ZK8=; b=l13YFbm0fgerPD7K7Vs4e47BO1WrKXSfMh3XMQjsa53lJgQcYHzLvafkMHArEkzUZX d12y/QvJ0QbZ+gZjkqAnrwHXl2D5qOZLUl4xEoM2AwtxoZg449A/3VNU+pnINe3VGJhB jNZedp9vJylepqyrcD3fRalVf19pWYMSi3fa+4jBpm14BaVJSBR9dvjsto5iFKTWJ9eh KBLBjma+jzGr89f+3XcFT/Enw5410alw1ul11vez5LpBy9KKHzqCsF+KPMhYrhoY7p1y U7KAcMBsqq3V7HfgC0TtAoV9uiDqU7C7Rz9Y6lIzxNAXbn3o5cOuiPa6oSy0oKIJ2mZw QYHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mWDJt1eM; 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 hx20si3895156ejc.471.2021.09.16.09.45.24; Thu, 16 Sep 2021 09:45:50 -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=mWDJt1eM; 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 S245737AbhIPQmN (ORCPT + 99 others); Thu, 16 Sep 2021 12:42:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:44986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236689AbhIPQfn (ORCPT ); Thu, 16 Sep 2021 12:35:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 119A8619E7; Thu, 16 Sep 2021 16:21:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809290; bh=mB/oPdwl73KsxVExmbB8un8vw9SIZa/aoXml7Bf30Gk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mWDJt1eM97VWvjPLKn1qxMwBk8qo1L59gXIpPEk9hMRJIla+VVTKufwkICrWLwjo0 b2oVz6QuDsbT9MK0UorlyHfp0Ldr88yHwW4qfToJ+CAuUm/k6KnpFgqpfAcjXf6T6y 8lQ2SwRcfDn1R03MgzKAxz1iI6U8mIUdtWht5Gr0= 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.13 073/380] clk: rockchip: drop GRF dependency for rk3328/rk3036 pll types Date: Thu, 16 Sep 2021 17:57:10 +0200 Message-Id: <20210916155806.493863145@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155803.966362085@linuxfoundation.org> References: <20210916155803.966362085@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 fe937bcdb487..f7827b3b7fc1 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