From mboxrd@z Thu Jan 1 00:00:00 1970 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 68AE13FB072; Wed, 20 May 2026 18:41:12 +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=1779302473; cv=none; b=NrDYoYgsoV8oAIJK3Zra40ThTN1xWSn8Mi4beq/Pu2ddv1+t+/wHNqn4rqFwPSrR47F+Te/L5E6PAqOEiaJxO9ESCx3BHAQCklZ0ndJWQNbNnWzRSZOj+ptfxpz6egkMd9E5yCJIBB0uuau11DVTWOcrJT6J+bjO2yD1ehjq0S8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779302473; c=relaxed/simple; bh=/4vuc370thoBnFIe3Q/64LDXRvLeji184SwNrO9INnU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=U03zkydaMQbUw2rlzAO9jtTbWRI3xfUk6ow0+ct06nJf3Ae7gxmLn478C5xfLxDZBdteJbh0n9mp1rGsS6B+DPGXvsb+F5pI46x+2U2ksycjNvTuoZ4E3thPU3SyGuGQ/8t2bhB8U4nV9fW6D8YLBsV+i6lnH5MBMcsN8eXhfEY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KkmVzATy; 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="KkmVzATy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CED521F000E9; Wed, 20 May 2026 18:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779302472; bh=q+6qMliBYdvYN1FAZloUe9JJYNqLCUOtn+P/gps3hvE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=KkmVzATyAKm/O5+Vu15RjDsJ8V8IvPWclFmHbsEwaklJN0c+Y7CuyanY5BTlyVf1R /II07Qhc2X51j0Fz1s+R+Ty71h8Tve1t8mzuH2zQfdrR5LcW1IQUutBjbeo3+Otz6O ht4SmJo6PJbLYK8Om3o6xMKTYUcDdyPcpluzeoTA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dmitry Baryshkov , Konrad Dybcio , Val Packett , Bjorn Andersson , Sasha Levin Subject: [PATCH 6.6 280/508] clk: qcom: gcc-sc8180x: Use retention for USB power domains Date: Wed, 20 May 2026 18:21:43 +0200 Message-ID: <20260520162104.711124133@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162058.573354582@linuxfoundation.org> References: <20260520162058.573354582@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.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Val Packett [ Upstream commit 25bc96f26cd6c19dde13a0b9859183e531d6fbfc ] The USB subsystem does not expect to lose its state on suspend: xhci-hcd xhci-hcd.0.auto: xHC error in resume, USBSTS 0x401, Reinit usb usb1: root hub lost power or was reset (The reinitialization usually succeeds, but it does slow down resume.) To maintain state during suspend, the relevant GDSCs need to stay in retention mode, like they do on other similar SoCs. Change the mode to PWRSTS_RET_ON to fix. Fixes: 4433594bbe5d ("clk: qcom: gcc: Add global clock controller driver for SC8180x") Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Val Packett Link: https://lore.kernel.org/r/20260312112321.370983-4-val@packett.cool Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-sc8180x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/qcom/gcc-sc8180x.c b/drivers/clk/qcom/gcc-sc8180x.c index 08011db603503..889c1ab6d63f2 100644 --- a/drivers/clk/qcom/gcc-sc8180x.c +++ b/drivers/clk/qcom/gcc-sc8180x.c @@ -4105,7 +4105,7 @@ static struct gdsc usb30_sec_gdsc = { .pd = { .name = "usb30_sec_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, .flags = POLL_CFG_GDSCR, }; @@ -4123,7 +4123,7 @@ static struct gdsc usb30_prim_gdsc = { .pd = { .name = "usb30_prim_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, .flags = POLL_CFG_GDSCR, }; @@ -4195,7 +4195,7 @@ static struct gdsc usb30_mp_gdsc = { .pd = { .name = "usb30_mp_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, .flags = POLL_CFG_GDSCR, }; -- 2.53.0