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 AE97D4028EC; Wed, 20 May 2026 18:41:17 +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=1779302478; cv=none; b=L84qTkTkmgE2otmsng9IhBWwYQi9qQuTbWrug0SSnsevhCrU54Ho5qlG6iogc1dfeAOhxurqM8gLkKB7Le63GlrQNWcoD9k+OnyMIP/8aG2f0vBQrbjAlE2X8DTI/V8n69+GycdE14zI95nFF1IWXwILBEUpb237T+SnArsIFcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779302478; c=relaxed/simple; bh=vL8yOdhlzmRRBagoUfYWgrykjbsJ0C70G3bwdtQs60E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=l1A9dCMmWqR7WDx6nnSopAcoj+RLVKn9z3hah95R1a2V97jPEFfvGIwoEtFdLgLC3hSbG6enguiCwxYzdxDUJAXufz/FuOlWt52b9Txbc3zSxH3BEM9anFw2IdFhbhXjapSr+jZcTSQ4S2LeIn0T0g9gU307e1x29zCqVmioAfw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dwOw/Nl+; 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="dwOw/Nl+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 179581F00898; Wed, 20 May 2026 18:41:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779302477; bh=TDpcKUNQy3/0nKN6UIDsDvuBfaTyKqbdNJyvYOBjpb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=dwOw/Nl+eA4/Y2ZsbXFPfMhNNqRTMjg6dxPe4LHsKTotyi4pxbwqNqOlxBerkLqg0 6NqiYTqRYW0LtjYXg8I85AqwCTBR2ROZ+dqswZEEw8NeN8JkjjWP164axgtvBmZGAA rC8pHSrfPfPJwviBL/ZmUb82rDTRGypwVUhcpj0c= 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.6 282/508] clk: qcom: dispcc-sm8250: Use shared ops on the mdss vsync clk Date: Wed, 20 May 2026 18:21:45 +0200 Message-ID: <20260520162104.754762101@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: stable@vger.kernel.org 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 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 317a7e2b50bfb..cd6df240953fd 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