Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2882186rwb; Mon, 15 Aug 2022 13:14:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR4lXPvcnfOCO2l6phalZNzaV2CupyPH7Xb35CKsHeklLIz1hnEGQeABm7VOUNSwZG8c9Fof X-Received: by 2002:a05:6402:26cb:b0:43e:6fab:11c6 with SMTP id x11-20020a05640226cb00b0043e6fab11c6mr15163946edd.272.1660594449747; Mon, 15 Aug 2022 13:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594449; cv=none; d=google.com; s=arc-20160816; b=w1FywGtWA9wQ2TAIHPMv4uJc2Mt8YsbpaIqAZRI+y0Oc0++YBCsOEotGV09Mhi04m0 WSDif7Bc6vfMx4Yo0JOdLFXlsQsMzgZBHamh1GaNBn5zkeKWSNz4I2+L2DnuvMuneMyj N2nSUNSpQmRlC06bDYo+euo7MRbARfWKxFZTy6wjdMI+QaWv9bLFE8uCvxHN/BVoyrun byGkf1mUuaIz8HaPeNaQVo6sf76gET1w02DbK0Pz8ArO4s47cKVB109BjP59u8op3rcq Tr0ZP4EVeim8rmBI2PpeGUUo7/Km65tlIw80rDINnRtdVLKujrMD87nzPdgmlQGXneO9 HE4A== 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=abtO+W+vsDnTDJAUWxbU0LpX5s8dWgUrzjGieq2CDB0=; b=jdvuxycRDwIB4xZnREhXb2CE/k/XJYGdahy7n4TLOoMWON7YUVwLF/lfFqTmAS5sAN t+EQ1GI5GVfkYnc7mV5kQQ8HZxCdalGggy4c0TiRpeCCBWj+3rezmV91eHoNQKP4k2Ya ia5mmt9YvOWYYUgzki2i5JdZ2AtQ4TipUtZCG96cQCpfUSLVtsLvLlg7AfwAIZa/28X1 4SaDPTuDT24j/arJ0VSbMqX9I3mYRXPolRVecx1f0GyRJXjbm6bigyyYilf/YVEDdtig 3wYqaqj9f6QBJd3SJ8FP52rAflYkZFYHTbN+HDe09ngl4k4BUlgkAJOHaV4oR9lMR77K cOsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=q+UU1v5W; 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 qb40-20020a1709077ea800b0072eece129b1si7968392ejc.753.2022.08.15.13.13.43; Mon, 15 Aug 2022 13:14:09 -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=q+UU1v5W; 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 S1343767AbiHOTOB (ORCPT + 99 others); Mon, 15 Aug 2022 15:14:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343758AbiHOTKz (ORCPT ); Mon, 15 Aug 2022 15:10:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6098D3AE6D; Mon, 15 Aug 2022 11:36:41 -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 F03E261024; Mon, 15 Aug 2022 18:36:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9C14C433D6; Mon, 15 Aug 2022 18:36:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588600; bh=eR0tZIvRvaH/L5ucyop9lSP+vc7zcIFE4nTjR/Nsrr4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q+UU1v5WoKpOJ58l1MyGDUCi1GYwKDjIKP4b8IvIREru9x5Em4zH+Ji354WCpt7nf yMyqCAyaayEEkNI320qhZu9NlxXPgOEu/kj1P5vso+ofcBxyxUcKpggMJB7AaOgB57 CnM9sqEjn2Xb52s7DNhPZbsNNdLKT6wEYPpESjkw= 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.15 454/779] clk: qcom: camcc-sdm845: Fix topology around titan_top power domain Date: Mon, 15 Aug 2022 20:01:38 +0200 Message-Id: <20220815180356.688792751@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 1b2cefef7431..a8a2cfa83290 100644 --- a/drivers/clk/qcom/camcc-sdm845.c +++ b/drivers/clk/qcom/camcc-sdm845.c @@ -1521,6 +1521,8 @@ static struct clk_branch cam_cc_sys_tmr_clk = { }, }; +static struct gdsc titan_top_gdsc; + static struct gdsc bps_gdsc = { .gdscr = 0x6004, .pd = { @@ -1554,6 +1556,7 @@ static struct gdsc ife_0_gdsc = { .name = "ife_0_gdsc", }, .flags = POLL_CFG_GDSCR, + .parent = &titan_top_gdsc.pd, .pwrsts = PWRSTS_OFF_ON, }; @@ -1563,6 +1566,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