Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3262300rwb; Mon, 15 Aug 2022 22:38:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR66kLD39ow+nchDyL18uskDF3xl3tztNSm7N0/AQZEjH4zP6psY9bEDzgY5XXcbPbtZWIMm X-Received: by 2002:a17:90a:9907:b0:1f5:2318:ea6d with SMTP id b7-20020a17090a990700b001f52318ea6dmr22420343pjp.163.1660628280120; Mon, 15 Aug 2022 22:38:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660628280; cv=none; d=google.com; s=arc-20160816; b=pEk8PTBZoF5/3XPrxH67CJfJ7qtN5DzQ8i6Adl33EMoh4reUmEUNCdyAimH+0Y6Zzy FxEND6Gh7ZI4MH1+DpUwsL+q4awkTCIgbQKj5+ynx2avHpJK5MPiUmIRKSlHmptKKJVG zMsPug5OYvvv+PEWXX9yzDbtrwNj5XADRHjtWslblFBCP0obPWb0EzWwLB2YHSnVsqqZ 1+Ih27Cpm2ex8577/ED1w3WOOsUh5DwWakNi2i1MK8dCuD83pJw/G92WIlGKRejtFgny AjCOOQFZ97jz9hDQESbBLYf8FpHqWSfsxc5enEs88jDe8T5p2929YG2NHEVZl5gqkgg8 J11Q== 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=YIME6iPO6YaANgvdkT0Wn0rpTm6a3y6Ab2WM1v7zpSx98d5QqXgJAXWcbmzcLsPUGl t5DibGr5I6IVRhf2SuyxJLfLIOrwLBFAqYcvJCHt4Mj9scyJQ8+U3mn9ytzFCgSyRieH tOxZwQ3zVpuPRHyNZFdStf54DuzLhJSwdBQWpufzexhK2XmFByOat3dCKGq78M0ye60G WC5ohiZvDJAHunMzfZfPGOtyMQYTWmn1F/l3iKVELUMNF6BJGJxEDKvjivMIWQRlum5D pDqprzZ4QxvmmCaqOIMctYV7v0u2m4nTvZy6YG5sbq5sqKg7FKYcmh/y+h+iiYwRz/hF vlxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QfQV1vOu; 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 h69-20020a636c48000000b004206ecd8fabsi12763050pgc.781.2022.08.15.22.37.49; Mon, 15 Aug 2022 22:38:00 -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=QfQV1vOu; 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 S232089AbiHPEnU (ORCPT + 99 others); Tue, 16 Aug 2022 00:43:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231873AbiHPEkb (ORCPT ); Tue, 16 Aug 2022 00:40:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2CE1A3D58; Mon, 15 Aug 2022 13:31:51 -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 8EFB261072; Mon, 15 Aug 2022 20:31:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D3BAC433D6; Mon, 15 Aug 2022 20:31:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595511; bh=Ykk3jmbFM3PJt62sxcizrmy6rHAzlSYX/3dokANt3sM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QfQV1vOu/oLGEuw69X78FNV7XvmZGciE+CNun9Ncz1exxs6u7em5Kd/n3ZCtiHJ7f PI9npTJbtMcX6jVen5fSjXjfy9gUf520PNcMsVBCqZH0RLF1UmO3njo/WFvmS5kYeE EQRhehd2bf05XJYBoeOeDrc11vE72qrXu6sRll+8= 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 0760/1157] clk: qcom: camcc-sm8250: Fix topology around titan_top power domain Date: Mon, 15 Aug 2022 20:01:56 +0200 Message-Id: <20220815180509.894025167@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 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