From nobody Sun Oct 5 03:35:55 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 8D652289367 for ; Mon, 11 Aug 2025 10:56:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754909804; cv=none; b=fl7qxfu+KNoPh8aKzQIOrPpkKCUXkgBvie4qTWrxLzcywc2foPSij/mh89DBZT61bYHYZP62AhPIaWliTXjuko6q4onN/4ejik2GdPNlPQFUlzlBMF+tz+K+1WoffVcpQTg7s50hi8SPkDDEpk/JjI/+z+J6JiR1u6XT3zzKNa0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754909804; c=relaxed/simple; bh=W4oHtDUPRGuCLmVSKKz7teYp4yrHno03QAMcLtqmgJ4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=s5TD9cgrUgm+62ovHIi3tWgaBXiLUntJVtigtroJ1UQrzFyFSEWJEaDaQhPy3LgVXt7Z+i/ZNuxcobothoOhX+WnJc0MwCnYwSa0Fqi+6lp+W6jz94frPgf7vc/+MP4Iou9ESERJ8uHRzYNdPQVKJxnS96uBxCDt0YoJl5N8rI4= 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=RE9dbemV; arc=none smtp.client-ip=170.10.129.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="RE9dbemV" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1754909800; 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=2v4P79PdNIaS18Wb0ZUemgbjQrcADYOCCdsS00/Mio0=; b=RE9dbemVTecLIMxvYbG/9k6zYHAa5I3iPvs36YZpyr4pppl8fBfgX5GV1yJ2JDka9GBPS2 kGWXnxvSuVLyYCySsoGCP0OHz6EfafRiyuOxsRpyRpi42/23DjElav6djwyeleVzxD7zq8 5vnHFi8OV4AEBbwmt5Q7i44gPE2md8M= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-481-sKGbnGLUOxOSutJiEhjr-A-1; Mon, 11 Aug 2025 06:56:39 -0400 X-MC-Unique: sKGbnGLUOxOSutJiEhjr-A-1 X-Mimecast-MFC-AGG-ID: sKGbnGLUOxOSutJiEhjr-A_1754909799 Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-4af2237e4beso96989231cf.0 for ; Mon, 11 Aug 2025 03:56:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754909799; x=1755514599; 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=2v4P79PdNIaS18Wb0ZUemgbjQrcADYOCCdsS00/Mio0=; b=jUq9btT4QRDmiSrzzA+8U0Zl7ZHl8NyMyH3cO8IV2PvxBheDzA7lO41pQfsvei1cZb 0O+eMxNIhhvlzseoSTwpz6FYCi5VgOFQu6fBhJm3O+kV6I2X2B5aJrIAbXXNCYou4SYy G5UyWynYUyt7gMP67bQfijCIo8oEbukbZSLtyO0SGCd6BgpzcKtHb2SQX4q2ah7L/HXz pRnnu+dRk2YRV1ZBQ80R1IX2qt2MPCS3McpAkwcqI3ToVADl+V1bRwhj+AJOUwiBCRf8 u6/ToiY3oDYhF6v6Ub5t8E6q7sPDMWaRmzdX8TEfF0DUEBS5dvKCXQZacLQe6zIoC8c3 1w/g== X-Forwarded-Encrypted: i=1; AJvYcCVcsTkvrJxmyQm/nPrZ5cg6nzQKhOcWYJeaGe8C7HRGeXtBdHN2uS94hVMAz2nrh98sbNsFt9dCdZz57ps=@vger.kernel.org X-Gm-Message-State: AOJu0YzocaxQLMelnTAamWxiK6KXbZ7mst99wAGsrUP71xzCB20XgXuW 5a8vB9fCL36M7fiHftgYrrmkeFr04UBH9kMhTe21wOLUeaoBwEQV8H7IAXIcuVQf598PF5FrO01 87L2X8/UOM+zu3vJS2xOVEX/1yEnv/UNHI8DM+2CCYJc2UWl36UYhOpZYcSFtqQNbag== X-Gm-Gg: ASbGncufVrSV6CbKBYCKBrGlCy2nJ3EsawOZAeJSwgvDBfTtVYq6FtGBmhsOqtZ3LW8 QS0MiVdxkQzreziUxh5nBHXh5iihYwATNq6nMUBRy7l21rwuWzo9h5DWfaCfqdHknWjywEkyF1B BgbJCVX7sEYdQeIOPx8puUAWAfBT7LwansPjKCFEfPHyz5nk7zj9D8xBGRMhD79GL7mGjcajBPM q8ifQkLUQsqaI2OV/TOfnuQPUhTWXD/j10jXfJw+N8Y9es3R6Ak8RSJxlzMWWQXRRNzKPDPuEzm 5USmsWpjbaOSbTRyHv4CuOuykKBRK988QWQTDWYWPjCFiKeOkqDrHPkaH4wKSPAi+IRZOYNWOyS XMtw= X-Received: by 2002:a05:622a:1aa0:b0:4ab:640d:414e with SMTP id d75a77b69052e-4b0a06eedfdmr247966701cf.3.1754909798788; Mon, 11 Aug 2025 03:56:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETXQEWlFC7Wcyu/io2faEikISODgBHD0p2mDq0e7vALuwZuamzM4hp/NBzXMpTjJQ+LZFp/g== X-Received: by 2002:a05:622a:1aa0:b0:4ab:640d:414e with SMTP id d75a77b69052e-4b0a06eedfdmr247966191cf.3.1754909798373; Mon, 11 Aug 2025 03:56:38 -0700 (PDT) Received: from [192.168.1.15] (c-73-183-52-120.hsd1.pa.comcast.net. [73.183.52.120]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7e698de2df7sm1273446485a.80.2025.08.11.03.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Aug 2025 03:56:37 -0700 (PDT) From: Brian Masney Date: Mon, 11 Aug 2025 06:56:08 -0400 Subject: [PATCH v2 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: quoted-printable Message-Id: <20250811-drm-clk-round-rate-v2-4-4a91ccf239cf@redhat.com> References: <20250811-drm-clk-round-rate-v2-0-4a91ccf239cf@redhat.com> In-Reply-To: <20250811-drm-clk-round-rate-v2-0-4a91ccf239cf@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: linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, imx@lists.linux.dev, 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 , Dmitry Baryshkov , Konrad Dybcio X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1754909781; l=1657; i=bmasney@redhat.com; s=20250528; h=from:subject:message-id; bh=W4oHtDUPRGuCLmVSKKz7teYp4yrHno03QAMcLtqmgJ4=; b=zHi78rLvdAYaZdTIMhwgqH/js0hiXWDnYr4X0BvUbuN6hprJjEDc2ZwgX+szZViPz4W8X1kk2 ngDBdMEkWVsAVo6sQ7hWvsQkjGQtaqeiQEeV2wywPAakq8QLF6bboSJ 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. Acked-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio 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..6ba6bbdb7e05304f0a4be269384= b7b9a5d6c668a 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; } =20 -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 =3D find_rate(rate); + const struct pll_rate *pll_rate =3D find_rate(req->rate); + + req->rate =3D pll_rate->rate; =20 - return pll_rate->rate; + return 0; } =20 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 =3D { .enable =3D hdmi_pll_enable, .disable =3D hdmi_pll_disable, .recalc_rate =3D hdmi_pll_recalc_rate, - .round_rate =3D hdmi_pll_round_rate, + .determine_rate =3D hdmi_pll_determine_rate, .set_rate =3D hdmi_pll_set_rate, }; =20 --=20 2.50.1