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 35ABB399377; Sat, 30 May 2026 18:06:30 +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=1780164391; cv=none; b=U80TiZgba7Fw9pa7JIvLiadCYXnQrxAilLC3/oATXSEqHMvrHCLTBbDIhZmvTrGTCpl8xjMI/wOonF/BUEKFQcCBUU2En4cf9XAZuQuFXDB0dXsNywXG52tDnJt4gclIz/FneSBeAj+vgrTJ0x02ViAKsnxTK4Cx9AFx91aPJb8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780164391; c=relaxed/simple; bh=Y5WFwyV30sHRF02NranltWqbmPbgN/kRCha1h38X7SM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=T41ubBAFRfdmF6na649Yg1zAJN1tkOyJsDTRP9yQzmIKdAwjG9kb0BWXVtm2YYRNMiTdBdYwApIlJe7i72gpDKGZy+AB6v5KfvSGrzoczIuKiPebTSOyj9HpS9XtawQ4+nEZZdoJKEfIlbbOOLZjx/UVWeQ5MQPY8TqeiDYqoTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=i4xcTVD5; 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="i4xcTVD5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 781C91F00893; Sat, 30 May 2026 18:06:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780164390; bh=RYc3Lp3TucvmfB/stmybznAWF7/mm538MWPt6mKvV7s=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=i4xcTVD5pjPztKRVrGV3Bewy8YmgZrp3wzz2dwDTtVhsCerii/68kT/fQN3uIPC4o BIi+FBhpH6vmU952pkKFjnU4TtQJ/5UbkgzK2EUopjcnnGovOQnoUzGMBtdlfI/5jw bY7IpDjuH9hd5B6+Kom6Jbib/d+hQG1oE3UAERD0= 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 5.15 541/776] clk: qcom: dispcc-sm8250: Use shared ops on the mdss vsync clk Date: Sat, 30 May 2026 18:04:15 +0200 Message-ID: <20260530160254.165305265@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530160240.228940103@linuxfoundation.org> References: <20260530160240.228940103@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 5.15-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 fc08c326d8026..d9c68d1b90900 100644 --- a/drivers/clk/qcom/dispcc-sm8250.c +++ b/drivers/clk/qcom/dispcc-sm8250.c @@ -613,7 +613,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