Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3022024rwb; Mon, 15 Aug 2022 16:19:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR6yuQtIWqlbHbtXIMy8vsTlkHZdJu4djMbTLb8CGMjxuyei9iIzQf8yph+Ik4jUhLvihUrJ X-Received: by 2002:a17:907:8687:b0:730:7c7b:b9ce with SMTP id qa7-20020a170907868700b007307c7bb9cemr11477707ejc.656.1660605567682; Mon, 15 Aug 2022 16:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605567; cv=none; d=google.com; s=arc-20160816; b=DjN76v5RQWly+guPSbhVjfk+dagTK8tFeF6LyAg7n2RgE9nk7+05VqYdcda545TtkS XH5Jwms6sPsbGbeBrIFrFe9odVyD3yC8cYLtrLR22T78WqCrYE12J3TTIXecdCPK3lr8 K8YVw+2UXzeOofd+NhOlcovVzcswzPgwjRHcg6CCxFg5AoIHeYfgBDriV19TyotQ0cxC oueDFCSzT1XS3WTwZDQJU5eMLx/t+DWs8W3oJnJjA92Dr+GCQReuTeqUlIVjw+jJ0z6d f7QjpirdI8VeLeYZm1bEgyJIUPvp4TbZY7rtEpm9VyRRtQbM3xmvAz/dHu+xIuE0zAEW EF4Q== 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=QXd3MmZVL523UD6BhZaRPvWJi5z8LA619rcvV0fMv20=; b=sNlbCtGDqT7h175mKxOscH47Wgn8E/omqoq5oSPlZU1HHRnNgDdc1IbMr+OjVv8JHH XBMuGUGSDKHoBNxWrhWqZQ7KumHsWsUP7TWrBlpbzEPQcpyQZsAm3umKM1cLJLwPbvUw /iy3iZeAj1IYe0aE0DE++7qDqsh9EV5PFNoek+BOnIAuE192Z6QuVwlf6Y6gKZX/j67s JZHQ/6x7LEf81etA38u2oF0C9tqzXrf/dTsajqGOwoOB93r0YG2aHGy0BzFnDt5WdcdG pow93bjJ7BkftHRVyVM5SUzUKFVaD48kUUujG46d3KzO5YtXCkFBM/iF+U40/p2XRnaK +aGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VkEgVV8t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds4-20020a170907724400b007331436454esi8943165ejc.603.2022.08.15.16.19.00; Mon, 15 Aug 2022 16:19:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VkEgVV8t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1348374AbiHOVyD (ORCPT + 99 others); Mon, 15 Aug 2022 17:54:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350474AbiHOVvZ (ORCPT ); Mon, 15 Aug 2022 17:51:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC0F810650C; Mon, 15 Aug 2022 12:32:43 -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 ams.source.kernel.org (Postfix) with ESMTPS id 22012B80EAD; Mon, 15 Aug 2022 19:32:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CB4EC433D7; Mon, 15 Aug 2022 19:32:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591960; bh=TC7u+XgfGfTMxPRPSERVYjV9ZDYG1QScUUBzh6/c8fc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VkEgVV8tuQ8ZZIQCw7T1EyjsrtOES7aYm2caooSl5voKpvDM0AnCoJl+ggZdMuIlN Rpi4rM/Qo9dLkXXDAb0/2A/ABMTFchf+5fOF7SJmzytf4783qnNWLyjNGrx8ao1llF RTXOFF02169K+EqmDXT5UHGZwE3a62pXC2zQVGlU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vladimir Zapolskiy , Robert Foss , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.18 0710/1095] clk: qcom: camcc-sdm845: Fix topology around titan_top power domain Date: Mon, 15 Aug 2022 20:01:49 +0200 Message-Id: <20220815180458.763871408@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: Vladimir Zapolskiy [ Upstream commit 103dd2338bbff567bce7acd00fc5a09c806b38ec ] On SDM845 two found VFE GDSC power domains shall not be operated, if titan top is turned off, thus the former power domains will be set as subdomains by a GDSC registration routine. Fixes: 78412c262004 ("clk: qcom: Add camera clock controller driver for SDM845") Signed-off-by: Vladimir Zapolskiy Reviewed-by: Robert Foss Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220519214133.1728979-2-vladimir.zapolskiy@linaro.org Signed-off-by: Sasha Levin --- drivers/clk/qcom/camcc-sdm845.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clk/qcom/camcc-sdm845.c b/drivers/clk/qcom/camcc-sdm845.c index be3f95326965..27d44188a7ab 100644 --- a/drivers/clk/qcom/camcc-sdm845.c +++ b/drivers/clk/qcom/camcc-sdm845.c @@ -1534,6 +1534,8 @@ static struct clk_branch cam_cc_sys_tmr_clk = { }, }; +static struct gdsc titan_top_gdsc; + static struct gdsc bps_gdsc = { .gdscr = 0x6004, .pd = { @@ -1567,6 +1569,7 @@ static struct gdsc ife_0_gdsc = { .name = "ife_0_gdsc", }, .flags = POLL_CFG_GDSCR, + .parent = &titan_top_gdsc.pd, .pwrsts = PWRSTS_OFF_ON, }; @@ -1576,6 +1579,7 @@ static struct gdsc ife_1_gdsc = { .name = "ife_1_gdsc", }, .flags = POLL_CFG_GDSCR, + .parent = &titan_top_gdsc.pd, .pwrsts = PWRSTS_OFF_ON, }; -- 2.35.1