From nobody Tue Apr 7 18:26:39 2026 Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.188]) (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 76FBC3BE64B for ; Thu, 12 Mar 2026 11:24:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773314673; cv=none; b=H7Ztg+fxOXty7tv0J+zMoObbuX5mTN2vB4RcFNSED85Zvqce/uH0daFZuzpVPXRA3m7gHKTTjYAfLnfKpyIBvfztcYcvnjGZv6SbsT7TsfvSDQ8XX3XxyMR6jkSboCptyDGmJOhT7Y4jGFrqwa7atXupxJNKxTVfnV7vW1IhzY4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773314673; c=relaxed/simple; bh=/tmKxqWvNYa6MuUMQn+keyh63vEc8tPLub4G+YWIYJs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HOcdKIhzPiFNzoC7RUHoyKLdpLJqITA6Ly6tdCVNP9C5PufE9UbFMmKdY2Q8M5e+BPLz0cpU1P8DR/77HQIKRGY+U+b4HiicUflLQi0r/qRwpDYlF5YGKzChou/cd4pSdwt37yCAlwCJ4qKDGkesvbJEw+c+hwHjfyv3hgftOLE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool; spf=pass smtp.mailfrom=packett.cool; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b=epMDnH1M; arc=none smtp.client-ip=95.215.58.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=packett.cool Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b="epMDnH1M" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=packett.cool; s=key1; t=1773314671; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CzW6GgYT0Hq52fgkX18bHoLKVtz4DvDWuePNOqfPfZY=; b=epMDnH1MBr9n2q5qyz6OUtR5PLmPfJKXqHht82KSgIV9rMPdn68oqjkSukJIenyrCp5mTL hx3IjIvHHG6WZ5GqIlGavqdkPjW5RH/SfyyCdwk5lix6RWibJIZOYFcCXnz8/xLBFRtXtq +sbl4A2EPZpdEIwJWAtq+x01fBPkAvgtN+zgLR1k0J3aNTn7RBEEtwABtVCmHcdo5RZ3nx lPoBIXdAf/xWvolCabVsfRjwnwDYoExjovcjXbs21ehO+3CIaVt+nHnVsXd4EjfweZoi3k mxuzQoZ1VhSZMZm4w1UdKldKGMVAwoR/Yi+Fa8VeDG2sCiK4Cg8cprkyTyhNKQ== From: Val Packett To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Jonathan Marek Cc: Val Packett , Konrad Dybcio , Johan Hovold , Manivannan Sadhasivam , Dmitry Baryshkov , Maximilian Luz , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 07/11] clk: qcom: dispcc-sm8250: Use shared ops on the mdss vsync clk Date: Thu, 12 Mar 2026 08:12:12 -0300 Message-ID: <20260312112321.370983-8-val@packett.cool> In-Reply-To: <20260312112321.370983-1-val@packett.cool> References: <20260312112321.370983-1-val@packett.cool> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" 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 SM= 8150 and SM8250") Signed-off-by: Val Packett Reviewed-by: Dmitry Baryshkov --- 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-sm8= 250.c index 8f433e1e7028..cdfdb2cfb02b 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 =3D { .parent_data =3D disp_cc_parent_data_1, .num_parents =3D ARRAY_SIZE(disp_cc_parent_data_1), .flags =3D CLK_SET_RATE_PARENT, - .ops =3D &clk_rcg2_ops, + .ops =3D &clk_rcg2_shared_ops, }, }; =20 --=20 2.52.0