Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp52313lfv; Tue, 12 Apr 2022 16:58:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRwOi3jOVCYkMeztt3TGJyxYoE6dxZ4xEULCH0+IA+ag/K0TbfIlOY4V9El2iCFknCVjql X-Received: by 2002:a17:902:8c96:b0:157:990:c9b7 with SMTP id t22-20020a1709028c9600b001570990c9b7mr28458265plo.118.1649807934824; Tue, 12 Apr 2022 16:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649807934; cv=none; d=google.com; s=arc-20160816; b=AGrdSoYLX0bF42QiL2IWfdVSfLVWmdCcAXRWL2td3lGT9g2aHnnxG/ss1CnYMha1SO ZSZ9Kq4bjc/+MceSNWG0yKu5qVLXauWEhzCppPbFXD8mGq4afgzCcemKaATUQ2ikNRbI SUwzSjFXShbIcrmXMhy9l4yFVVB11wUDACvJPblEs0L6UsRR0LFMLvoxQlp2L2ciKOse c5hqQECDJZuuIzSryz/4MzIhGSv3P4WzXPwIMZ+7jxRMyTkZ5/MMxoWtxsI7134W8KId 2x3mgm1tVIjoo/r2699QkCD+F6yGVsLOPXQTQO5kNLgq+CGJnghdv8FhBN6P6GJdcgoo Grqw== 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=cTSi9pv2NR2RuXS3i8TzFJw14pkyTQMUsKqoulVwqXk=; b=RJrj28ndGQA/mGqzdqTe76FIBjdJOpTSoDgmYuelZN308grRiyH2HfiS7+139xjZP/ GxOBe8WT5RAiZskoiEU3u4HF417TMrJXtE4at2eRnFk3Rc1DLo3GSh6P3T4qB3J53Jf0 uFQbUiqoK3WUmulLiFK3uMXCrvdF60r6wGE74hZly+mZTP76gHXZTplp6Y4i+tlX63TK BdkOgPzfthpzm9hhQcsTywRvjlchPJcv97+AYxD1V5QlWaFQFJBZ/J6fwQUK3PsryEA5 t5yLHh2xdKuh4t2IVdWadDTA/LN+TgyxKBWzBjgjFMoXPfAIR30UzTiGDh4hECfLy7q3 wajg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=X7m8dMhb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u34-20020a632362000000b003816043ef57si4076056pgm.332.2022.04.12.16.58.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:58:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=X7m8dMhb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4239E208C10; Tue, 12 Apr 2022 14:55:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377753AbiDLHx2 (ORCPT + 99 others); Tue, 12 Apr 2022 03:53:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353547AbiDLHZq (ORCPT ); Tue, 12 Apr 2022 03:25:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5451225E98; Tue, 12 Apr 2022 00:01:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E2B74615B4; Tue, 12 Apr 2022 07:01:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5559C385A1; Tue, 12 Apr 2022 07:01:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649746874; bh=DxwY6l76XGwbPyQnxRwmwMjVIFRBEV1XjogZrmYIAC8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X7m8dMhbi6OeqG+IHdSnmvR1ofHIQE40lN9iYqJOcpSG9eplbC56vyTSKOo+kPoYl DUixRnK1eZL7SVTuBKXwEXp3P6qB/xq5UJPsOUFfkobls4tmW58LdEKU1VoUatJUIu kywVa/IjzKi56XW094uTMDmxlvpiUH9nJ03YauB4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sascha Hauer , Heiko Stuebner , Sasha Levin Subject: [PATCH 5.16 121/285] clk: rockchip: drop CLK_SET_RATE_PARENT from dclk_vop* on rk3568 Date: Tue, 12 Apr 2022 08:29:38 +0200 Message-Id: <20220412062947.158231127@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220412062943.670770901@linuxfoundation.org> References: <20220412062943.670770901@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sascha Hauer [ Upstream commit ff3187eabb5ce478d15b6ed62eb286756adefac3 ] The pixel clocks dclk_vop[012] can be clocked from hpll, vpll, gpll or cpll. gpll and cpll also drive many other clocks, so changing the dclk_vop[012] clocks could change these other clocks as well. Drop CLK_SET_RATE_PARENT to fix that. With this change the VOP2 driver can only adjust the pixel clocks with the divider between the PLL and the dclk_vop[012] which means the user may have to adjust the PLL clock to a suitable rate using the assigned-clock-rate device tree property. Signed-off-by: Sascha Hauer Link: https://lore.kernel.org/r/20220126145549.617165-25-s.hauer@pengutronix.de Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- drivers/clk/rockchip/clk-rk3568.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3568.c b/drivers/clk/rockchip/clk-rk3568.c index 69a9e8069a48..604a367bc498 100644 --- a/drivers/clk/rockchip/clk-rk3568.c +++ b/drivers/clk/rockchip/clk-rk3568.c @@ -1038,13 +1038,13 @@ static struct rockchip_clk_branch rk3568_clk_branches[] __initdata = { RK3568_CLKGATE_CON(20), 8, GFLAGS), GATE(HCLK_VOP, "hclk_vop", "hclk_vo", 0, RK3568_CLKGATE_CON(20), 9, GFLAGS), - COMPOSITE(DCLK_VOP0, "dclk_vop0", hpll_vpll_gpll_cpll_p, CLK_SET_RATE_PARENT | CLK_SET_RATE_NO_REPARENT, + COMPOSITE(DCLK_VOP0, "dclk_vop0", hpll_vpll_gpll_cpll_p, CLK_SET_RATE_NO_REPARENT, RK3568_CLKSEL_CON(39), 10, 2, MFLAGS, 0, 8, DFLAGS, RK3568_CLKGATE_CON(20), 10, GFLAGS), - COMPOSITE(DCLK_VOP1, "dclk_vop1", hpll_vpll_gpll_cpll_p, CLK_SET_RATE_PARENT | CLK_SET_RATE_NO_REPARENT, + COMPOSITE(DCLK_VOP1, "dclk_vop1", hpll_vpll_gpll_cpll_p, CLK_SET_RATE_NO_REPARENT, RK3568_CLKSEL_CON(40), 10, 2, MFLAGS, 0, 8, DFLAGS, RK3568_CLKGATE_CON(20), 11, GFLAGS), - COMPOSITE(DCLK_VOP2, "dclk_vop2", hpll_vpll_gpll_cpll_p, 0, + COMPOSITE(DCLK_VOP2, "dclk_vop2", hpll_vpll_gpll_cpll_p, CLK_SET_RATE_NO_REPARENT, RK3568_CLKSEL_CON(41), 10, 2, MFLAGS, 0, 8, DFLAGS, RK3568_CLKGATE_CON(20), 12, GFLAGS), GATE(CLK_VOP_PWM, "clk_vop_pwm", "xin24m", 0, -- 2.35.1