From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B64481DFD1; Tue, 8 Oct 2024 13:02:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728392563; cv=none; b=iTxQN7VDLYqbQJqQyOkiWzlwFHVf4xrbse9cjek0cY9v8vAq1KWB7pxna7FUySZ4KRVPRPInh0obQadHdEiyJBWTfHVGcA6LITLBZY2YGNmE3+VCSPLzZAy0F49bIOiivE+FzlUfVQmV2qsI8hLuPOCmTt8/9jVWoKi4fudxwvk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728392563; c=relaxed/simple; bh=uVK4uY/cROfcJ9Wym4xab4ZKc/GPVlTLavaSE9g5+o8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M5nuKS5n5Qk1WRWHxgDnei8B/F++Ouf1rE6KkPChda5x9oPSDpmKTVt/LXp/WSDpdDHn/gmILJSA3glWIOpxG9ueCqKG+RFThto2dI6Vbxdso+eHClKNOwzmS1ioDYguof66denccCvakzKMio5d4pyqkCagG1KGslt9t1WQe/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UZuEGMZD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UZuEGMZD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23C93C4CEC7; Tue, 8 Oct 2024 13:02:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1728392563; bh=uVK4uY/cROfcJ9Wym4xab4ZKc/GPVlTLavaSE9g5+o8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UZuEGMZDBE0XmJ7ChPLAc1r37+bmhiYlyAa/W+ZITKXl/9dEqFik0W4n4Sfs/VXry HOVENnNHYleNVWXqTf/ee5w7IJzyEqQrY9M6H7BZ7YoqohMg3bknNwF8LOAt9CVqYu S0Mr5ZUsL3WpeoEOAdbDZ1zH+LuzuJzgEejV8JuY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Manivannan Sadhasivam , Bjorn Andersson Subject: [PATCH 6.11 453/558] clk: qcom: gcc-sm8450: Do not turn off PCIe GDSCs during gdsc_disable() Date: Tue, 8 Oct 2024 14:08:03 +0200 Message-ID: <20241008115720.085616601@linuxfoundation.org> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241008115702.214071228@linuxfoundation.org> References: <20241008115702.214071228@linuxfoundation.org> User-Agent: quilt/0.67 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.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: Manivannan Sadhasivam commit 889e1332310656961855c0dcedbb4dbe78e39d22 upstream. 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 # 5.17 Fixes: db0c944ee92b ("clk: qcom: Add clock driver for SM8450") Signed-off-by: Manivannan Sadhasivam Link: https://lore.kernel.org/r/20240722105733.13040-1-manivannan.sadhasivam@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Greg Kroah-Hartman --- drivers/clk/qcom/gcc-sm8450.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/clk/qcom/gcc-sm8450.c +++ b/drivers/clk/qcom/gcc-sm8450.c @@ -2974,7 +2974,7 @@ static struct gdsc pcie_0_gdsc = { .pd = { .name = "pcie_0_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, }; static struct gdsc pcie_1_gdsc = { @@ -2982,7 +2982,7 @@ static struct gdsc pcie_1_gdsc = { .pd = { .name = "pcie_1_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, }; static struct gdsc ufs_phy_gdsc = {