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 6FB8F3F8706; Wed, 20 May 2026 18:17:37 +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=1779301059; cv=none; b=SArSiPFE7OQgXTm3yX4ye4gw3M0OTid9qB+ESXBSvHTRTZcHzMxv6CfeBsStTogbRKco0eVhCVbzylye+IVgUsKFFH1VD9FuqUqpA1sqG+M11C5TamjaYNtIAKDB+qm1xKaBoAf77RHA3rtb+5bcbBP9FE9tlaXjHNG+eZeS4iU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779301059; c=relaxed/simple; bh=b3c3t9NBsxOKE9fjI9nezoJ98J20eCf8d7mVckSnRek=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AC53mAdYhPJnXXzyJIqwgFrEqx0A82agJ6YtvI3AXPpzdXqiAgOFfTgOshzkcBQVxM4dsdKkDfazK9FJ8sgga16/cM0+GRl/gwaCDMq2zcFsvDvykuO0CzuESFBFSifg49ipKOFBGGatnPjCGz7JmZPjamlkHeOOk9jl8/cydds= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AmG06say; 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="AmG06say" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ABF01F00893; Wed, 20 May 2026 18:17:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779301056; bh=YZObuzNKi4MZ6d1i/Gb3ueZ3XY+cFPCa4GMVOjifFQk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=AmG06say2T9zW12GBvtUlT/iAJsp9g01EbhfKJpi0AK0JoUdAtJzkCZk6M2mk4Ar+ Od46dIvA0rGXrK8n6W1Xtu2/8nS7IbCFTWg5KanyTsfnvTe7hAnE3uEZhfezkM2G2T EXGWqMAn/oWMHikfDX8Z0bWwDDgGUQq5w/VodLgg= 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.12 410/666] clk: qcom: dispcc-sm8250: Use shared ops on the mdss vsync clk Date: Wed, 20 May 2026 18:20:21 +0200 Message-ID: <20260520162120.147969807@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162111.222830634@linuxfoundation.org> References: <20260520162111.222830634@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.12-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 884bbd3fb3057..b21d16b094667 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