Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3E3523A562; Sat, 12 Sep 2026 17:00:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789232417; cv=none; b=a1pvR1YRje5IJsYSW9mAPgxnuB5UI46ypNxdMyrdL+dnzbq/2WBGuqO6pkkQqCP2rKzcPCFG/WFJfebdRHIYLgHPnG1tbfjmGtyon877tuoftJNJfj3i9r4gvJfBJs7SpHdIZ6xuHacivoOegekQwvfECnQaZ8OE5H+X7j69oX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789232417; c=relaxed/simple; bh=LE0XSd3I91L5Q/lTa/f99qJ9QZsUx86yG520B4N3hHQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bmoHFhwC+wR304r/waPhn55H99JQKRMsFPtM/u5UT5i0wMoEjX5nxP1ByAat0xKAh5Oae4XTmOqF7gO47bMppi3xe7b4AFc3ocwAlPRBqksgiwUvcPwaEvw2rPD7+7p3CL0L9Mt3QY/cMAPM2ZqEro88yCYdIypOKS2Ij7LyuWg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IzynAzrs; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="IzynAzrs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22E8D1F00893; Sat, 12 Sep 2026 17:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789232413; bh=WuzgQQgkaDPr56IJnntj7ySXec1QocGN9r8iw6QGxUo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=IzynAzrsa/tCCUIIM7Y5hGxkE93W2m0I49OvCDOY0r7oyL/8UP0wBBL27BoSIW09y /AeFvyd9YV5rnJTR/umvBXXxZSVA3hOKnR/sPQM5oy219ctED3nrvUivyB7EVVfYiK 0xhkRwWEHUejteT4P4WCMmcNiD+tskrn5vQRjgs4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Konrad Dybcio , Bjorn Andersson , Sasha Levin Subject: [PATCH 6.1 1156/1191] clk: qcom: gcc-sm8550: use collapse-voting for PCIe GDSCs Date: Sat, 12 Sep 2026 09:04:44 +0200 Message-ID: <20260912065614.108941589@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065548.086904252@linuxfoundation.org> References: <20260912065548.086904252@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Konrad Dybcio [ Upstream commit 7e77a39265293ea4f05e20fff180755503c49918 ] The PCIe GDSCs can be shared with other masters and should use the APCS collapse-vote register when updating the power state. This is specifically also needed to be able to disable power domains that have been enabled by boot firmware using the vote register. Following other recent Qualcomm platforms, describe this register and the corresponding mask for the PCIe (and _phy) GDSCs. Fixes: 955f2ea3b9e9 ("clk: qcom: Add GCC driver for SM8550") Signed-off-by: Konrad Dybcio Link: https://lore.kernel.org/r/20231218-topic-8550_fixes-v1-5-ce1272d77540@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-sm8550.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/clk/qcom/gcc-sm8550.c b/drivers/clk/qcom/gcc-sm8550.c index 97d71cc4d8309..9b1c17cb13492 100644 --- a/drivers/clk/qcom/gcc-sm8550.c +++ b/drivers/clk/qcom/gcc-sm8550.c @@ -2997,6 +2997,8 @@ static struct clk_branch gcc_video_axi1_clk = { static struct gdsc pcie_0_gdsc = { .gdscr = 0x6b004, + .collapse_ctrl = 0x52020, + .collapse_mask = BIT(0), .pd = { .name = "pcie_0_gdsc", }, @@ -3006,6 +3008,8 @@ static struct gdsc pcie_0_gdsc = { static struct gdsc pcie_0_phy_gdsc = { .gdscr = 0x6c000, + .collapse_ctrl = 0x52020, + .collapse_mask = BIT(3), .pd = { .name = "pcie_0_phy_gdsc", }, @@ -3015,6 +3019,8 @@ static struct gdsc pcie_0_phy_gdsc = { static struct gdsc pcie_1_gdsc = { .gdscr = 0x8d004, + .collapse_ctrl = 0x52020, + .collapse_mask = BIT(1), .pd = { .name = "pcie_1_gdsc", }, @@ -3024,6 +3030,8 @@ static struct gdsc pcie_1_gdsc = { static struct gdsc pcie_1_phy_gdsc = { .gdscr = 0x8e000, + .collapse_ctrl = 0x52020, + .collapse_mask = BIT(4), .pd = { .name = "pcie_1_phy_gdsc", }, -- 2.53.0