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 2FC563D7D66; Wed, 20 May 2026 17:40:59 +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=1779298860; cv=none; b=nMT37KA6V7r1y5ZdREEhrRfAqGZ20pWMb9yLGhEqJO/2K4xeDCwSMekunH5vTPuf+dLhxfmz5Yc56FHoHcwTEvVdthFC9EZI2VbOmTVlp5MajFw1k95blklzeGHZP8E6kaV1nlPWSF9RvVFSH6Qt7tlrO2sUojJiJ3v3TeOiIik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779298860; c=relaxed/simple; bh=dgR1LkR/rPMK55vLo6Gp3JG762T2BmDpUz0AMQE05J0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=t9RoaU6tHTWUXsWQZ0zQOX3wvl4CzdQY7XfIJY3J24bSbehf0nq7n8gHeNZFgWBqkiKED+N/uJw7sAC2BUnGjdrh4FDPIVrTAYOAeSrUK0uRJvZqgixfADUl2mm0nWH50XYfNx1cpcIxxzTZ1AOsA5Mf+CerZS8nYvIGruK74G8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GZFINabr; 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="GZFINabr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94BD21F000E9; Wed, 20 May 2026 17:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779298859; bh=5Vxz+dA1Q+nZsXsVIPXrtuPHCbzT7lO2Xy9ue4xaIjU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=GZFINabr1yEFYg7EHbtPJK7fxvruFFDKClkYu7I8XUYejF/QnA8Fe1JhWOAdlfh6h dlLYSTAJoYdFHckTf9PvXCD1hdDWR6kUfZQOCJrNBrJFWhAAvWEnYxmeNWAurU3GlR 6KuEOYkD/RLRGXwAYiLM1a352hUAxsRV8JL12eSk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Val Packett , Dmitry Baryshkov , Bjorn Andersson , Sasha Levin Subject: [PATCH 6.18 569/957] clk: qcom: dispcc-sm8250: Use shared ops on the mdss vsync clk Date: Wed, 20 May 2026 18:17:32 +0200 Message-ID: <20260520162146.869690235@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162134.554764788@linuxfoundation.org> References: <20260520162134.554764788@linuxfoundation.org> User-Agent: quilt/0.69 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.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Val Packett [ Upstream commit 8c522da70f0c2e5148c4c13ccb1c64cca57a6fdb ] mdss_gdsc can get stuck on boot due to RCGs being left on from last boot. As a fix, commit 01a0a6cc8cfd ("clk: qcom: Park shared RCGs upon registration") introduced a callback to ensure the RCG is off upon init. However, the fix depends on all shared RCGs being marked as such in code. For SM8150/SC8180X/SM8250 the MDSS vsync clock was using regular ops, unlike the same clock in the SC7180 code. This was causing display to frequently fail to initialize after rebooting on the Surface Pro X. Fix by using shared ops for this clock. Fixes: 80a18f4a8567 ("clk: qcom: Add display clock controller driver for SM8150 and SM8250") Signed-off-by: Val Packett Reviewed-by: Dmitry Baryshkov Link: https://lore.kernel.org/r/20260312112321.370983-8-val@packett.cool Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/clk/qcom/dispcc-sm8250.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/dispcc-sm8250.c b/drivers/clk/qcom/dispcc-sm8250.c index 8f433e1e70283..cdfdb2cfb02b2 100644 --- a/drivers/clk/qcom/dispcc-sm8250.c +++ b/drivers/clk/qcom/dispcc-sm8250.c @@ -632,7 +632,7 @@ static struct clk_rcg2 disp_cc_mdss_vsync_clk_src = { .parent_data = disp_cc_parent_data_1, .num_parents = ARRAY_SIZE(disp_cc_parent_data_1), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_shared_ops, }, }; -- 2.53.0