Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3028328rwb; Mon, 15 Aug 2022 16:26:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR4TuyX0/2tGFZQv8dxM9Z15MxrVweGVqNQKUFPNTsbQyRk3focP5dNYE80Ms9NUCOn1c+0P X-Received: by 2002:a17:907:2719:b0:730:a688:f1e4 with SMTP id w25-20020a170907271900b00730a688f1e4mr11455304ejk.425.1660605890289; Mon, 15 Aug 2022 16:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605890; cv=none; d=google.com; s=arc-20160816; b=aUHUfT45finIDX+M73ZuNsR7fY0VUoKSrwlvlOpir+BepAoDj/VOzeaeVHxcTP/anv alHl9icjjYQ09L3AmvHjCLEgIPFAX3AH7tLkpdEHlcAFy+vxAJEwUNaZjC8v4Zcocdyf uDwsFPvN2k8Fx5bL9tZKuCGwqe2mlIhw2y5KwsafPEGYmaNqSEzdL4IfAsXYMN/30zzD RzY9QQ3zlV8KxlrLYySX5WaH2Yglqnjz/rTZXwSQCEk20ncZ4u/5poAz71vltq88HCYS j2E0jxLO2jRxjvnufif/f5NcwEekze0sDKuvcePL6pfFLm6bMIYG0gqYjxkVWVRiEF2J xw/w== 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=BvHPuIaKaX1ZkmD62nasyTjdaNBjWaQcczktKJsde6k=; b=H/1qheWQ12mE3zKdhxT/d3oq3vDlBDux+kCSC8NcQEnrW8FDyc4qmGdM89XsQIekjl BMLfwYqfj2WxTnoPLUoJqXwt0T7zmFLcE2lAlEo5As01nG64fhNT5jT1PoBD4rtYIcJy Us1rvIkvJC7C4DrlU0mGtt9zUPRZZtdFVjUzeOZZ/LnQFsoHgvKKFjccy76f/M7LDJJA 1z5I4OKDQhjhXJdqmxNVtehSDnSSfk9WnjTHfWQfEHQR3MkTPv4xxFBtoiMwVH1oGKy9 gLBwhe7SCb+iWlVRFDEXwoqpIa43w1vHP0WIhxx1/pRxtKz1RRi+Kd40BbDbQwHrVsrP 07+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=stNHOsDJ; 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 dd10-20020a1709069b8a00b00730bae00e15si8802658ejc.140.2022.08.15.16.24.24; Mon, 15 Aug 2022 16:24:50 -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=stNHOsDJ; 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 S1344307AbiHOVyM (ORCPT + 99 others); Mon, 15 Aug 2022 17:54:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350488AbiHOVv1 (ORCPT ); Mon, 15 Aug 2022 17:51:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BD4B106521; Mon, 15 Aug 2022 12:32:48 -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 8D33561133; Mon, 15 Aug 2022 19:32:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80FDCC433D6; Mon, 15 Aug 2022 19:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591966; bh=Ykk3jmbFM3PJt62sxcizrmy6rHAzlSYX/3dokANt3sM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=stNHOsDJg54+RMlQ7xCbEwTp8z5Et5PId+itoTat9KQhxshuskEIcpLxG6FJT7Meu NyUZV2/0kIHJZViz4rtuQ+qfX3vPAkq9HeNYEkewLdcEuPqnDWObYLlPgRVPm5nDVS 11kiMrpIaLQ7I5PHGGruyMQCH3B+OjoTBcHf1DBc= 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 0711/1095] clk: qcom: camcc-sm8250: Fix topology around titan_top power domain Date: Mon, 15 Aug 2022 20:01:50 +0200 Message-Id: <20220815180458.813027052@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 f8acf01a6a4f84baf05181e24bd48def4ba23f5b ] On SM8250 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: 5d66ca79b58c ("clk: qcom: Add camera clock controller driver for SM8250") Signed-off-by: Vladimir Zapolskiy Reviewed-by: Robert Foss Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220519214133.1728979-3-vladimir.zapolskiy@linaro.org Signed-off-by: Sasha Levin --- drivers/clk/qcom/camcc-sm8250.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clk/qcom/camcc-sm8250.c b/drivers/clk/qcom/camcc-sm8250.c index ae4e9774f36e..9b32c56a5bc5 100644 --- a/drivers/clk/qcom/camcc-sm8250.c +++ b/drivers/clk/qcom/camcc-sm8250.c @@ -2205,6 +2205,8 @@ static struct clk_branch cam_cc_sleep_clk = { }, }; +static struct gdsc titan_top_gdsc; + static struct gdsc bps_gdsc = { .gdscr = 0x7004, .pd = { @@ -2238,6 +2240,7 @@ static struct gdsc ife_0_gdsc = { .name = "ife_0_gdsc", }, .flags = POLL_CFG_GDSCR, + .parent = &titan_top_gdsc.pd, .pwrsts = PWRSTS_OFF_ON, }; @@ -2247,6 +2250,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