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 33A95263F4D; Tue, 8 Apr 2025 12:17:29 +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=1744114649; cv=none; b=gt/Qa7BKtzBX3RksAHrwuZ6lZ6mTmpz0XO/1Oev8o3RMdCmUSnd7NJ+SKRNFwIspw1hvCfz4Vwow4G3L+4E8aZrVy60AhpBAdhl8ESbxd/oEuiBG0tROqVutl0t2y8MqziLKScRl+4bkZMkKkNPnEP5ptJ8cnb0+1nNciPmfpW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744114649; c=relaxed/simple; bh=3+BrD3q017DkZ75VDFnYHCnJIKhJIHUHUBcLPqQ4jIs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gMAIDnoTMOnl3+UR411YDnvxUElaYXwFiKkwqrBWP0hlFQuuq9AUQbRH70nykq0Wo/XIRvSv1bdOdRDp/nHGxmFn5cXB6UewGr2YOpqw/s2lZiJ1jTe2KGGDy/qRxltwYehgeSvfWCi8U1594Ty1VUCeebMk3AnKs1EgdcEGze8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kHsVM+0r; 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="kHsVM+0r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B958AC4CEE5; Tue, 8 Apr 2025 12:17:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744114649; bh=3+BrD3q017DkZ75VDFnYHCnJIKhJIHUHUBcLPqQ4jIs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kHsVM+0rBUMx8ze2yGChX7cpkHmmGsgX5hHkN3BavjW1g1ux0+O6ZpTS8PXeTYXRs 3tyPNt1arx++5+bUWmqTLIypbE/rqXYhS17vS4l6ywFow4LZxlW+dtEIe3crrJyhsX p2HsiUjDuvP5GUluAr2k3z5qhUQ3ekG7mo3ro61I= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Neil Armstrong , Bjorn Andersson , Sasha Levin Subject: [PATCH 6.13 185/499] clk: qcom: gcc-sm8650: Do not turn off USB GDSCs during gdsc_disable() Date: Tue, 8 Apr 2025 12:46:37 +0200 Message-ID: <20250408104855.788751502@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104851.256868745@linuxfoundation.org> References: <20250408104851.256868745@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.13-stable review patch. If anyone has any objections, please let me know. ------------------ From: Neil Armstrong [ Upstream commit 8b75c2973997e66fd897b7e87b5ba2f3d683e94b ] With PWRSTS_OFF_ON, USB GDSCs are turned off during gdsc_disable(). This can happen during scenarios such as system suspend and breaks the resume of USB controller 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. Fixes: c58225b7e3d7 ("clk: qcom: add the SM8650 Global Clock Controller driver, part 1") Signed-off-by: Neil Armstrong Link: https://lore.kernel.org/r/20250305-topic-sm8650-upstream-fix-usb-suspend-v1-1-649036ab0557@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-sm8650.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-sm8650.c b/drivers/clk/qcom/gcc-sm8650.c index 9dd5c48f33bed..fa1672c4e7d81 100644 --- a/drivers/clk/qcom/gcc-sm8650.c +++ b/drivers/clk/qcom/gcc-sm8650.c @@ -3497,7 +3497,7 @@ static struct gdsc usb30_prim_gdsc = { .pd = { .name = "usb30_prim_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, .flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE, }; @@ -3506,7 +3506,7 @@ static struct gdsc usb3_phy_gdsc = { .pd = { .name = "usb3_phy_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, .flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE, }; -- 2.39.5