From nobody Tue Oct 7 11:52:02 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 545DA2FE364 for ; Thu, 10 Jul 2025 21:11:27 +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=1752181888; cv=none; b=IlW0fVpYiTawyv+ZM1yJ86qwdzjtgygZVLHrqz9P+SXFAsGMDsnQ11XgN7uBOK9rVzyMwe3uspkevhw9MQzN9d2L/iZ4dGoZFFt3WmBwX7OHfk7DjxDXRXX/5tVzQ0jwjh+chAbqlwn0JH8CgIvQc/Ln0fb1h5AwpwznZ7gOXzs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752181888; c=relaxed/simple; bh=lPrXiqoaFyoeQgppqZyKjenf8NouReQ9MLOykK27dRU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=s+j5YagQOKWIXukHWu05rM8RDE21ScBtpjOOQyy9tWcWEaEnvT9twDGskugbsOUx02eeSZjyklUjrDridbDY5GG/44tM6cAMkRKG8XYb0gWCr/wp0zoiZIxgB0Dd5JriOvuSAgeP2EWeicp/XJnC74YZsK/15eY0sjywj5H92Bw= 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=BQoDoCa5; 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="BQoDoCa5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1752181886; 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=zkRmxVF+/QlkSCwSzc3e+U7MwnOjoOleG/kQ/my/S6I=; b=BQoDoCa5NKXePxcDt4YRVOFT49fPXKyPpRcLSCXLPLcxJKAaDzdXE+rCbxcV7vufnWAJgR uN9NH4Xcc+esIoecieQuy2ggCC423YAd1cxk5rlYOJcZV/POib2RQ+TKk4y86iXfCoi9sH 8ae+9xgpJLzM74KsnV6KvBUux5tQDKM= Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-687-l5plqLkxNQeov4jZNqS28Q-1; Thu, 10 Jul 2025 17:11:25 -0400 X-MC-Unique: l5plqLkxNQeov4jZNqS28Q-1 X-Mimecast-MFC-AGG-ID: l5plqLkxNQeov4jZNqS28Q_1752181884 Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-235e1d70d67so14016885ad.0 for ; Thu, 10 Jul 2025 14:11:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752181884; x=1752786684; 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=zkRmxVF+/QlkSCwSzc3e+U7MwnOjoOleG/kQ/my/S6I=; b=dFmWPmBzWCTonRfTW4mOaBFbUOxzXxvE0Bb4iSbP9JQup1OTcmSrZFhs9gpG51XcAR zPkKMBEPe1YwYo1b4PW5PgvcfQZhS9CuKmyEaSB++ZTiKOwmYYRm4zPJN/kGvqtn/nuF i8y/5hfzH2R2W1AMmcu8Jxi4WqCZwpSOzEWZsbP5P996wBZ63xABHRoltM89t2ianpim qZ8LLIw5HK5KN32hZCgCWiuXD+c8/GUD1SlgRtU5TPkfd7xsGP/heM7hUqP7fPYxhplU cTW7U8resjWokYbg5cgeda+rMJ2Gwcra+GbWvws81qE9ooi6oaAimw2EOu3yJycbWFdw AxxA== X-Forwarded-Encrypted: i=1; AJvYcCXru+fia5vu10GJIrJ5kVR27S0uGgfLUz9JRo2khLmxWQhinBgJVWK3zgxmH07Udv/WcYo1b79qbuhc0To=@vger.kernel.org X-Gm-Message-State: AOJu0YzCzYJMue94sqAape9PM2o3hax6b4ieYmJ0DgrTp7iC3ymKTPqU SmeZh3AB1w6Fv6quc+d8v5l5x77n18rSner+ktKzRrMhJ14s8Jx8XMXZZV8gnpYqkdmlcr2HEmR wegVSjLb1jxlhiPyD9amrcbJad4ZNvRTrK3oIpHAu9BfmFGygeBhvlUv6H5ujtdD4NQ== X-Gm-Gg: ASbGncvQdELiNuj8zXktjYhsX8LAGFIDqRbjrixMSPtbVkc79UcYpc2j5qdrAVJhaaR i0vDBnK5Wwqk/HPzFYmzLkdKSST6JxTy0JnZJFiz4bz7LkZ70j4euMykkO+4IHgohkAb3BR6IM0 VuZCq6fwJouMDBiAvBdGsqz6ExzCjcNHpZ5SqkNtcV825f2mC4XOkK44LM0uaau5yevrfC6Yzrg NPAe8Tx8pgXlqO3fY8gca1yaDZxeCRl22w5CnYrSPDDk6P9ww7WUlEmsZYvu+bcubCYLilcGg5+ aDqPE+4PrFcGP/nH8zp7wekKDn7IfVly3ELn0ZHMUhiknA== X-Received: by 2002:a17:903:40c6:b0:235:f70:fd37 with SMTP id d9443c01a7336-23dee204614mr8506775ad.19.1752181883922; Thu, 10 Jul 2025 14:11:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFlNa2UCk5k7FTMLWvw6UQJNvfPCttMnQwWDAo/7rPurjR8kL9UheWUSDb7RYnWa9zSSn9KGA== X-Received: by 2002:a17:903:40c6:b0:235:f70:fd37 with SMTP id d9443c01a7336-23dee204614mr8506465ad.19.1752181883603; Thu, 10 Jul 2025 14:11:23 -0700 (PDT) Received: from [10.144.155.224] ([2600:382:7716:65ad:9491:c054:6f2d:80ed]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-23de433e51asm27790595ad.180.2025.07.10.14.11.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jul 2025 14:11:23 -0700 (PDT) From: Brian Masney Date: Thu, 10 Jul 2025 17:10:35 -0400 Subject: [PATCH 03/13] clk: imx: busy: 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: <20250710-clk-imx-round-rate-v1-3-5726f98e6d8d@redhat.com> References: <20250710-clk-imx-round-rate-v1-0-5726f98e6d8d@redhat.com> In-Reply-To: <20250710-clk-imx-round-rate-v1-0-5726f98e6d8d@redhat.com> To: Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Maxime Ripard Cc: linux-clk@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Brian Masney X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1752181866; l=1695; i=bmasney@redhat.com; s=20250528; h=from:subject:message-id; bh=lPrXiqoaFyoeQgppqZyKjenf8NouReQ9MLOykK27dRU=; b=ciEnG1A2klaYkTSHYFvVaoRa/pN2wjKv7PEVsBTn7Kp+Jk8Ywliy431QYRxSaXvfJ65Sw7ubU j/w9HsVKxwvCcqSklIqFbpTvivNQM65pYXU2jaE1sXWg+NoqQfSRPs6 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. The change to call busy->div_ops->determine_rate() instead of busy->div_ops->round_rate() was done by hand. Signed-off-by: Brian Masney --- drivers/clk/imx/clk-busy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/imx/clk-busy.c b/drivers/clk/imx/clk-busy.c index f163df952ccc65baf300b62048f4303b0050fd75..eb27c6fee359d12eea8381cda98= 1eab650ddcd50 100644 --- a/drivers/clk/imx/clk-busy.c +++ b/drivers/clk/imx/clk-busy.c @@ -46,12 +46,12 @@ static unsigned long clk_busy_divider_recalc_rate(struc= t clk_hw *hw, return busy->div_ops->recalc_rate(&busy->div.hw, parent_rate); } =20 -static long clk_busy_divider_round_rate(struct clk_hw *hw, unsigned long r= ate, - unsigned long *prate) +static int clk_busy_divider_determine_rate(struct clk_hw *hw, + struct clk_rate_request *req) { struct clk_busy_divider *busy =3D to_clk_busy_divider(hw); =20 - return busy->div_ops->round_rate(&busy->div.hw, rate, prate); + return busy->div_ops->determine_rate(&busy->div.hw, req); } =20 static int clk_busy_divider_set_rate(struct clk_hw *hw, unsigned long rate, @@ -69,7 +69,7 @@ static int clk_busy_divider_set_rate(struct clk_hw *hw, u= nsigned long rate, =20 static const struct clk_ops clk_busy_divider_ops =3D { .recalc_rate =3D clk_busy_divider_recalc_rate, - .round_rate =3D clk_busy_divider_round_rate, + .determine_rate =3D clk_busy_divider_determine_rate, .set_rate =3D clk_busy_divider_set_rate, }; =20 --=20 2.50.0