Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1865110rwb; Fri, 19 Aug 2022 10:40:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ULp80cVIffSWMhSlx4p+eVpMRE3qGnynYo21jdnkczon5qw2kOdQUZ1wB8kt4A4xf+MH/ X-Received: by 2002:a17:90a:f8d3:b0:1fa:b220:1973 with SMTP id l19-20020a17090af8d300b001fab2201973mr14999447pjd.109.1660930810983; Fri, 19 Aug 2022 10:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930810; cv=none; d=google.com; s=arc-20160816; b=ZSqSJgfYudqCL0LK0E5QcSKjmEq5yiwMyLnegvFXw+yCNvMC/ysT29ynQ43BXHsYja lRJKI5JsSRDY5+1tg/iqeyEVlH5hx/vFm1VRWcqJ1nrIT72TOVPxWYgRUxje0thZe36e O08u2ofTs2ml79uHbuZ1xYfZih/OqFljEHzBwRIbWXgBffRz6p4k4ALz/7oDLo2pQxbm 0F7LSSQCheKO588kODcZ6nC769PIr7tqeB8NkJS8HXkBEFLQjx9p/e7dq0NuboK+Oj8+ 4ivc5+fVk1g2K5lH7v1sLIxLXOQtSQZ39FoyfikalYXuWizH1SHvNHdLQgz+wfugXiMD zTBQ== 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=VbA/YrIcGuQeJTpo3qayIflH5Qr5pJw+xhBvBDTzLriKo0RktkIvvWH6xWJ/bfdlZA uZHw/HTzl0+1Vl3RdQvcZ//B1CyCcWn44YaO49fCg+pI4ey4+VhKZfCljFh4YAk0IPGr SVl4ONh23i7vDOcmiMIkkcer43643MecNjXBGyQFbm78Fngp6t9p2CuWpO2UOTu+M07W K5zlUMgQv9p1Hdzyi/9tiTezJ4WWeWNrnNe70LYHQ9uiMFzdThzJGT3jpdhs0mHb7TSp brBON4NTIAOWG0YxNKLZOQH/fm2tgIvGx17+dIT5p0WTidSvXU8FMJwznCmjNkhfsCwi OqFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QoQwS19x; 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 ng5-20020a17090b1a8500b001f25fdf4252si5487775pjb.123.2022.08.19.10.40.00; Fri, 19 Aug 2022 10:40:10 -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=QoQwS19x; 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 S1352569AbiHSQX1 (ORCPT + 99 others); Fri, 19 Aug 2022 12:23:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352884AbiHSQSB (ORCPT ); Fri, 19 Aug 2022 12:18:01 -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 5F8891184E5; Fri, 19 Aug 2022 09:01:03 -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 6F86E617A7; Fri, 19 Aug 2022 16:00:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 612A4C433C1; Fri, 19 Aug 2022 16:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660924843; bh=eR0tZIvRvaH/L5ucyop9lSP+vc7zcIFE4nTjR/Nsrr4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QoQwS19xQB1IUj5Sl81qovHvOi85lmKmHw0O5/aagQslZtpbtteKtSzbRVQPH8+0p bl25AoJv0Kk75WZQLTt3neFVUWy8Nnu4KseEDnv1dqQKSAeEtkZPg0mnTzaYgREISK eUzxpw0oHOii4EhC1nCxBZ3hY1RZO2tZ2L/j1mQw= 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.10 300/545] clk: qcom: camcc-sdm845: Fix topology around titan_top power domain Date: Fri, 19 Aug 2022 17:41:10 +0200 Message-Id: <20220819153842.763464524@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@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