Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3252101rwb; Mon, 15 Aug 2022 22:21:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR6c+GMOP4Mkek9RYLFeVfLDCEvlx1IGkk0DuBxH8qcqp0yX+LW4mHjZxgrLABmiu0U6VQGm X-Received: by 2002:a17:90b:1b07:b0:1f5:115c:79a4 with SMTP id nu7-20020a17090b1b0700b001f5115c79a4mr21959404pjb.166.1660627286818; Mon, 15 Aug 2022 22:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660627286; cv=none; d=google.com; s=arc-20160816; b=uPVqZdhU3OrZ14bBjjeADd5s0P3o1DsZiptkE+vyaI13vNEGAhLz00Q/Ev+uEi7ftq qPWe5EhKz4+g/gwKUFaqxsph6VCwws88t+TD5hZnGF6ymG/EGX3DxW1Cc7xDpxbtyx9w b6oWXler6Jj0/iPrBXbjJqjfA6szWg16tTeiZPjZyHDtH8wep71MntlslztEe6aOfoRq S+FZqt6GOhLj63z/XYFkQ8cRWmCHz1hk4qEctGRjczM9lFhVb13sbxwLBeIs8rWTDavL NprJhrBHkZ5V5oZgPyDzY/ReS/mmjwCrNJFYmpvl5nJOwU17cTiMB77MwAfYY/5Cbggd BCiQ== 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=B8vzJt65vUzG2/EN+e+/EbddZUOhUrtBC536Kzjw3tc1bbKxyZuJuFqcvBhnvwdqDg qbngPPb8R6X/grs6fWKFPTZjqoINDhlC/dxDGcwz3JbIiS8awjnzKs/9sX59W1x/OiyA Vuuihu6DClvUolu9szBn+2inDmyDtzMCfODLiOi5RVzvioakDpSYFDTwLtKXbZjg7D4P sMclqHcUZpeAl1UKmxylug8PjiahMgGhYKA9iOMnLwSHX2OhVtT1zHdToiLzbWDXqkAK 7ynvedi/3Jcg4WJdXiz4Z1AYaflvoVONo2MmH/GwOK2k7lL2/MzppA5yMeR99/AjfWku loiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SKYi74NJ; 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 66-20020a630245000000b0041bf0a54ad0si12959744pgc.729.2022.08.15.22.21.15; Mon, 15 Aug 2022 22:21:26 -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=SKYi74NJ; 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 S231556AbiHPEmB (ORCPT + 99 others); Tue, 16 Aug 2022 00:42:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230418AbiHPEjs (ORCPT ); Tue, 16 Aug 2022 00:39:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E524CE318; Mon, 15 Aug 2022 13:31:17 -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 F1C6061089; Mon, 15 Aug 2022 20:31:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC084C433D6; Mon, 15 Aug 2022 20:31:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595476; bh=TC7u+XgfGfTMxPRPSERVYjV9ZDYG1QScUUBzh6/c8fc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SKYi74NJz6AUXhZ27XChGtm1wHEO42PxtkkmimrJVeoLS3VENp1EPE1uFecoO/hWR qHxtKIdgZtZI39k0qcDXRBZ7+9TrAjR7jp8HOZd6ZcnONCDsA9l8sCW82OvfbbHKEH 1tg5xWyhGdiUp39H6xbUKyf6WdEayY9HMn2jdgK8= 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.19 0759/1157] clk: qcom: camcc-sdm845: Fix topology around titan_top power domain Date: Mon, 15 Aug 2022 20:01:55 +0200 Message-Id: <20220815180509.854462441@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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