From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 906992F1FD7 for ; Thu, 10 Jul 2025 17:43:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752169414; cv=none; b=AVPbwHq/RlSIu4I9ma/zsU3nTdoktAHHsvWqOt7X/wUjrpTwwdrS1HvkCnzZE4QCQsDZP3FqN8WTadT1Jymvv3BYuoQWf5rHXQ6HCbyCsK9CmOx3w0BXuE8CX4Ul7Un6tdcovE2e+UlDNbCx/aJJBy90JNSgxPG0TlsPgVcc3hQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752169414; c=relaxed/simple; bh=MIrYQUA+EZpetvGrGMmQ8oMPGqbTBnNzDewrKD2iOsk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uBTaHSfeIhV0wxxRIIRTG91j5ePGQhxGGvpWOMIQ0vZpPLB08QAD++HMcx3rUJ1vo+HsE2n4voBG6J0wj7LSTVI49zI138FFD2vaeKsmjgwvkJBePBfo5SHgDZ5taMhQgLAjhyBo8XHMo7o8mRiYFdg3kgNTDyHkGODGVXofh28= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=THsnD/UA; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="THsnD/UA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1752169411; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ppN1Zg1KkN3TDh8kOcLfldTesCc7Q4yAOrM4kF9OYZg=; b=THsnD/UA0hn3cdsOaaayeVsUI/I7PyBZoNLeexfE7Ix1/Ezhzc2P7lFc2zjkmxESmSf6tu AsYRJ30KYZKxYjzg/AcTYqrt/nvtIup50+S2gdA6i68A9hw6YAZSwK6BWEdMax69xuNkB8 bTkykjp5jRN+RTZdyTAWSyQeZ2XzY68= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-6-XuMkVhTAMGm2MBq3A1Ti6w-1; Thu, 10 Jul 2025 13:43:30 -0400 X-MC-Unique: XuMkVhTAMGm2MBq3A1Ti6w-1 X-Mimecast-MFC-AGG-ID: XuMkVhTAMGm2MBq3A1Ti6w_1752169410 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-7c790dc38b4so238874685a.0 for ; Thu, 10 Jul 2025 10:43:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752169410; x=1752774210; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ppN1Zg1KkN3TDh8kOcLfldTesCc7Q4yAOrM4kF9OYZg=; b=BhF1I10CjuWoDcjnoe2sbvHkbBtNKPbUpO78o0M4AQbudRAqf2o1nAPf0PHN/m5AlQ 94c2Ckx08KLfjdVQk3XTV10CBVjexAds4zgYT+52K4osHQO++MG2TpsZAhBJjUw6E2Io hEJrtHUn678dodO1ciMA2sGZYVjZLL0cEsRw+EVvQLUJcukTWhot9YCtrudsCMDKHDb/ Z+k440YXlZVOjv11N/ZRPBSl2c1hwFHWBuAOPoTRjpMvs5cDhuyz80YumwsX52i4dDRp RcU7jyJOwtLivWvxlpkQB+bW6PF3Kb6LebUAy2dTITwPoBMxtdTRutYJTDaOfBEE+84K zcxg== X-Forwarded-Encrypted: i=1; AJvYcCUsnE4mrBahZEW/iJy6wIudHmZg+N/ofeQcAAIzTE1u2qi5E4tnQlkITaDlG4Au8DnoVG01vFatc/jN07s=@vger.kernel.org X-Gm-Message-State: AOJu0YxeWSL199jQS3r3Rlpw06U5k0jvBO+kIuP9HLcHuhMFhc16HR98 WzHGKQYcFNit7e3JKamvjJSzJ3F8zuntchXs2Ci5sVgGwcpjuLF41Rt71QdDdUaAWi2wC4KNPsZ EYQYU9dPTLRRAlEu6v5iBiaVSLup30+mo4wotrSQWheRWTIyrNsiPq251g4eAkXfZDQ== X-Gm-Gg: ASbGncsoWSKxA+8oJrPpJd1UWn2x9WwI26OcrPBlyUQ06eAB8fPHCMmw6bk9voc3pIK HuYskGe4d08D+rvaCvzGsCRhvoDkdAqK5N2Zkz4yuLIFxf6r7rE74sc/bJmAgM8ErHOe/Qnkl06 /obMY0fZxDSWPom5RF6yrvKmVlnSVvjyyHB4PoYKpFlp/53qs+ohjzuABMGN1ONUDQ6wwJ1ckUo cK1A/NaKYNPE1R1TWwIQjlCQDgDZkV9joE7PBoaP40AcJ0jnOgRSijpp2f4T9fvO0a1IidA3lWI y9Imy/TkQK25rWfk9p+6RFn7cK2aOYDd7GlnflhwEeGJzgzvqJWWirT1N/32 X-Received: by 2002:a05:620a:269a:b0:7d3:ed4d:812e with SMTP id af79cd13be357-7dc97da02f2mr646711485a.9.1752169409732; Thu, 10 Jul 2025 10:43:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGtGRA59X5211+zA6+bTuLexmbhranU9s00ouhgxHCHsr1K/Q7uZzJEn/YRVuxvQ5eKEuxqlg== X-Received: by 2002:a05:620a:269a:b0:7d3:ed4d:812e with SMTP id af79cd13be357-7dc97da02f2mr646704785a.9.1752169409169; Thu, 10 Jul 2025 10:43:29 -0700 (PDT) Received: from [192.168.1.3] (c-73-183-52-120.hsd1.pa.comcast.net. [73.183.52.120]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-70497d71419sm10652876d6.86.2025.07.10.10.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jul 2025 10:43:28 -0700 (PDT) From: Brian Masney Date: Thu, 10 Jul 2025 13:43:05 -0400 Subject: [PATCH 4/9] drm/msm/hdmi_pll_8960: convert from round_rate() to determine_rate() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250710-drm-clk-round-rate-v1-4-601b9ea384c3@redhat.com> References: <20250710-drm-clk-round-rate-v1-0-601b9ea384c3@redhat.com> In-Reply-To: <20250710-drm-clk-round-rate-v1-0-601b9ea384c3@redhat.com> To: Philipp Zabel , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Linus Walleij , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , Yannick Fertre , Raphael Gallais-Pou , Philippe Cornu , Maxime Coquelin , Alexandre Torgue , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Stephen Boyd Cc: dri-devel@lists.freedesktop.org, imx@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, Brian Masney X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1752169393; l=1532; i=bmasney@redhat.com; s=20250528; h=from:subject:message-id; bh=MIrYQUA+EZpetvGrGMmQ8oMPGqbTBnNzDewrKD2iOsk=; b=xNXPieWXOwE6YijWTJ3taaQPCPf8/+I1K7+s2EiMedGqecECqqLSQTFSwjhrnG/onGaKSV32p isG7Au5aNEyCqmbZJtcC9vC7jvxXBrzxoAluzBC1poKDa0ziZwvE41x X-Developer-Key: i=bmasney@redhat.com; a=ed25519; pk=x20f2BQYftANnik+wvlm4HqLqAlNs/npfVcbhHPOK2U= The round_rate() clk ops is deprecated, so migrate this driver from round_rate() to determine_rate() using the Coccinelle semantic patch on the cover letter of this series. Signed-off-by: Brian Masney --- drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c b/drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c index 83c8781fcc3f6e1db99cfec64055ee5f359e49e5..6ba6bbdb7e05304f0a4be269384b7b9a5d6c668a 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c @@ -373,12 +373,14 @@ static unsigned long hdmi_pll_recalc_rate(struct clk_hw *hw, return pll->pixclk; } -static long hdmi_pll_round_rate(struct clk_hw *hw, unsigned long rate, - unsigned long *parent_rate) +static int hdmi_pll_determine_rate(struct clk_hw *hw, + struct clk_rate_request *req) { - const struct pll_rate *pll_rate = find_rate(rate); + const struct pll_rate *pll_rate = find_rate(req->rate); + + req->rate = pll_rate->rate; - return pll_rate->rate; + return 0; } static int hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate, @@ -402,7 +404,7 @@ static const struct clk_ops hdmi_pll_ops = { .enable = hdmi_pll_enable, .disable = hdmi_pll_disable, .recalc_rate = hdmi_pll_recalc_rate, - .round_rate = hdmi_pll_round_rate, + .determine_rate = hdmi_pll_determine_rate, .set_rate = hdmi_pll_set_rate, }; -- 2.50.0