Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2841022rwb; Mon, 15 Aug 2022 12:23:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ihyFfvvTpUXy8ZfkIDVgxj4WpirmRklb1+Hq9LXXVcAH8/cxH+oJi/rAFfcm6MorSl1f1 X-Received: by 2002:a17:907:7292:b0:733:1965:3176 with SMTP id dt18-20020a170907729200b0073319653176mr11007616ejc.318.1660591387126; Mon, 15 Aug 2022 12:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660591387; cv=none; d=google.com; s=arc-20160816; b=EU388hbesZEOCl/4kMHwZwcNhmwxunwLQjZxr3dkXxUcpQi8usXYTvWrXbq8cPE0e6 hFaSLAH1X6bsZCLadaHFVfH8OY2PAhcgrwcUtXDEY0tNkEb2JoJ7rdcTAKhp/QuR9PWn 7RuIzOgdNiiEgS2wb4qif+SaDEbcUei829MQewWIpKQ7hWblOlgs2NRnXcMNAlEG4dDz swAx/ZSDYlQqSfJDSBwHm98En3l9Zsv67iNXrcB5bk5RulmZf472eJp8wWDpxklZh5zu 9mlQvowD4dcdaNKZpJcs8GVERh/A+bC5eHXzhSEhlJGjklTl5VSt4jr9ivmOdEMWyJqn 6+KQ== 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=yOVW2T6wMUN2VomHVp+cfBQfwqIVElazcZwR7+Cf/KGBa7AO0MhKl49dIhdIaA69aI FKmY2HVKBhlojUjUGO0bNa8Jz0Uti/22yYrcFcXQrFo+Qy+elTVub/riWLRjgYcWL+pw umdOCJDHLeLKk/wJ69uMBy4c7MlG/0C7RwbrTxxtxscqWTp3QRkAdXbm3NOn833wr8Fr 2KbOpmqjjgP73bGyxcVcWxWUPMk9gyDhHFcaRQii67oEW6zYHSR3+6MEfwQYnDTsTLzU 6WYw3e/64e3zVNU7zgsSKceLCUr5+iwxM/NEpDIuy4fNgXVyGT712nIFzhw6eSGEzDSL FqNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pGcvSHxe; 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 gs14-20020a1709072d0e00b007317732083csi9080268ejc.274.2022.08.15.12.22.39; Mon, 15 Aug 2022 12:23:07 -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=pGcvSHxe; 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 S1343616AbiHOTUc (ORCPT + 99 others); Mon, 15 Aug 2022 15:20:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344764AbiHOTR0 (ORCPT ); Mon, 15 Aug 2022 15:17:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FF625508D; Mon, 15 Aug 2022 11:38:47 -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 7D93161135; Mon, 15 Aug 2022 18:38:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EA01C433D6; Mon, 15 Aug 2022 18:38:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588725; bh=Ykk3jmbFM3PJt62sxcizrmy6rHAzlSYX/3dokANt3sM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pGcvSHxeC++8hJW4OX92m7u80PA0coMnm71gsrfNgRUl2nI22bPGwez1RSkdN+qvH ZY2fm8kKhUeiPgJBWPUbmVlpcYjNu5YWUT8DeePQYOG+n6A26VnsUo/BcBNFw0fQd0 uUe5JHvSFsRLCSW3Cv+mXDMR7hVumwLc4LCrrCps= 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 455/779] clk: qcom: camcc-sm8250: Fix topology around titan_top power domain Date: Mon, 15 Aug 2022 20:01:39 +0200 Message-Id: <20220815180356.727742293@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 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