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 E195633938B; Sat, 12 Sep 2026 17:00:09 +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=1789232412; cv=none; b=MbGADul2JLDNpXz5YiOZJN30LxAAadr4BRaA0GOA41vbKL/cRQe4pGq4xQtHCXfLZ5BN7ZJ4L/4T6sL1vC7PqOH8fGrcAahl5cwe+5yW8Z+1z2P71TwWUXQS7c8Sd8mQOvv4U2ucDHeu4kuTdtu6FSPgTH/D9X1Xiv8Y6mOQf+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789232412; c=relaxed/simple; bh=AH5D8uPRrMhkeFU+Vy7/0MCokjZ2xBtmJ7NOMuJLOIw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QjVvruITsg3YcbkzqrgB6lS2/HDY7rL0k3f4/8SuXOmnbOegRGyDphuxYOXSdrRlfQ3s8Z2UI+Ki23aIruKivDoWkMvwxT0FDJCLlSuLCvWoK/3ylFAVXALjj3kHdnVJGzrR4dirKD2NZ2dlz95DACs4qeBZ2+pJz9WFcvkG2/8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=C8uGH/Tz; 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="C8uGH/Tz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EF0F1F000FF; Sat, 12 Sep 2026 17:00:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789232408; bh=PqDyfrc7KuIWw1HlA3K7FYn2Ph3d/jvt8hrEW/DGVkg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=C8uGH/TzNvoxBYV/Vkvh6pTd1+K8xNpOeS2dYRSRgmJBzPB/XKMrrDE+g7a1W7XHO Zcioalck8rpE6WU1huU0m2SC3GT3PmXUamGlhquE2OFWOEsuBb6SeqIFn/pG/J+P1/ pj9loXqqkXQ4kZHlpQYWKsHBx8/JQi/kmeyQxOyk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Neil Armstrong , Manivannan Sadhasivam , Bjorn Andersson , Sasha Levin Subject: [PATCH 6.1 1155/1191] clk: qcom: gcc-sm8550: Do not turn off PCIe GDSCs during gdsc_disable() Date: Sat, 12 Sep 2026 09:04:43 +0200 Message-ID: <20260912065614.086605272@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: Manivannan Sadhasivam [ Upstream commit 967e011013eda287dbec9e8bd3a19ebe730b8a08 ] With PWRSTS_OFF_ON, PCIe GDSCs are turned off during gdsc_disable(). This can happen during scenarios such as system suspend and breaks the resume of PCIe controllers from suspend. So use PWRSTS_RET_ON to indicate the GDSC driver to not turn off the GDSCs during gdsc_disable() and allow the hardware to transition the GDSCs to retention when the parent domain enters low power state during system suspend. Cc: stable@vger.kernel.org # 6.2 Fixes: 955f2ea3b9e9 ("clk: qcom: Add GCC driver for SM8550") Reported-by: Neil Armstrong Signed-off-by: Manivannan Sadhasivam Reviewed-by: Neil Armstrong Tested-by: Neil Armstrong # on QRD8550 Link: https://lore.kernel.org/r/20241219170011.70140-1-manivannan.sadhasivam@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-sm8550.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/qcom/gcc-sm8550.c b/drivers/clk/qcom/gcc-sm8550.c index b753af2fccf7f..97d71cc4d8309 100644 --- a/drivers/clk/qcom/gcc-sm8550.c +++ b/drivers/clk/qcom/gcc-sm8550.c @@ -3000,7 +3000,7 @@ static struct gdsc pcie_0_gdsc = { .pd = { .name = "pcie_0_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, .flags = VOTABLE | POLL_CFG_GDSCR | RETAIN_FF_ENABLE, }; @@ -3009,7 +3009,7 @@ static struct gdsc pcie_0_phy_gdsc = { .pd = { .name = "pcie_0_phy_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, .flags = VOTABLE | POLL_CFG_GDSCR | RETAIN_FF_ENABLE, }; @@ -3018,7 +3018,7 @@ static struct gdsc pcie_1_gdsc = { .pd = { .name = "pcie_1_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, .flags = VOTABLE | POLL_CFG_GDSCR | RETAIN_FF_ENABLE, }; @@ -3027,7 +3027,7 @@ static struct gdsc pcie_1_phy_gdsc = { .pd = { .name = "pcie_1_phy_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, .flags = VOTABLE | POLL_CFG_GDSCR | RETAIN_FF_ENABLE, }; -- 2.53.0