From nobody Mon Feb 9 16:02:24 2026 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 89174339856 for ; Thu, 8 Jan 2026 21:19:35 +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=1767907180; cv=none; b=u4k8CSpUZO1YFkh5ZCi+ppTeb2LzdZ2WAFGin3YzeqAfcM7iYYJQYN6yxIMCT6pS1u9/4nJKjMvH9/9ZqDKxe6DERvSrd5qC5IyPeWBHy9vOQ5Apv8A63/qsD9eFZz1xBUjWWMjVn/LweG7sJW2CtFnNfjCuBto1rUsoyDjcCyM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767907180; c=relaxed/simple; bh=7gS8R9ubIL8YOU5prWLYeLbasyiJ1ewi1xZXoJO78ak=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oDNYh8AUBNGZygGg1Td9STqeoKpHkzW+IBPHj+WZNU8AEj0SbHtzAP33ov8dVqYZQTDy/KXSRhsz1OKBKU30aXS+QFp1GUfBrvEnDZUpJZOSJVTBUym9mEXrxV5R9mJxPLMh6cn+3GUyXkI9Ptr1mEQq+Op6F3mGnMS6N1k+dks= 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=TPoVqyJP; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=qv5NO9OE; 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="TPoVqyJP"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="qv5NO9OE" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1767907172; 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=bgA35QJPt6bn7Cwt8Wzj2jn50koHv1JzEeGEjnq2gUU=; b=TPoVqyJP8fwAg5o1fZIF67/sOhNFOa50QzRkNB7CNvX6NUbmwXL1wKsUNo2c73cQUIB9Zp e5CbDKL7rlhwo+bD98/vOvMgpUOWkv0DiBO7ru7rag3oXJ0ws+Ots9frUcUUT6nIt/9HxF 9Q49lXKQ7W17dvEksAvRvumUYO3sG7g= Received: from mail-vs1-f70.google.com (mail-vs1-f70.google.com [209.85.217.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-518-pmPpynuCPc-hvueW8MFQhw-1; Thu, 08 Jan 2026 16:19:31 -0500 X-MC-Unique: pmPpynuCPc-hvueW8MFQhw-1 X-Mimecast-MFC-AGG-ID: pmPpynuCPc-hvueW8MFQhw_1767907171 Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-5ec87b2b4ddso1831282137.3 for ; Thu, 08 Jan 2026 13:19:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1767907171; x=1768511971; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bgA35QJPt6bn7Cwt8Wzj2jn50koHv1JzEeGEjnq2gUU=; b=qv5NO9OEQEYkb74Tp1qGn+FXlLV2xTguTO3V0KkF7IRMbN9s4tK6G3sAjgTFiwL8pE o0aPrf9WQWiO3TwXTsE2/64q0oAEq/oAIhXAMoakYSJapemjXhbaLeO8meGWxVfmCmAK YoC03hl+9J8QSJVUUr/+c2TwI1dDOktzMOUyTXsGAYVEuHbM4ITsiMAHwWzcrX76ljIG 7meWclWDdoXUnMwH/GkfYD84gVFGxT+bm1iiGd7FB1yz6JskMfSgloBEondc85ZWVFzP KixSWCJ2D0/QPemNDUNsCjC56dEKc0PfkLMapjRwFzMTkY4WytQlsnA5ENIxvscoq6qp 30eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767907171; x=1768511971; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=bgA35QJPt6bn7Cwt8Wzj2jn50koHv1JzEeGEjnq2gUU=; b=gsImKcAN5CEZua3z6AOTuBUNUEOugdS+pCZnUDWnQjWgE4pO8FExgfMronriwJiF0+ Inhx0VPh2wJbtU0iBVK0ak5eok1U8YaclDmy6F5VtP5b5TpPwJ/DleGuHHl+CnxhY8Xz HNggoEEPZsvQYADWF9ING+quaIdPMois8CXDECf3bom32EuD+wW/Hu1eeWS8JhPxBBd1 wkMYleE/49SeWSIu9cFbq54saM1jSED3NXqh12GYOyXGOiKsx8m2HOgNiQk5qeV30Pti /VO7fzPIAO+xoOVCEEBnybPpVoxMVNc+FUT10h/Yd7z610GZW2UHN9YY6mPivnyBk8PZ D85w== X-Forwarded-Encrypted: i=1; AJvYcCVXFIJMNXAjTYqtl6ls76Hx3sBpCE1WMQ9sbnkXoqUjxPNviKaYiSjA5hrZStFuHBsEfBuqERIBgODqYQc=@vger.kernel.org X-Gm-Message-State: AOJu0Ywkaxi4ym+p1IBaqIZAV4hIOmReOB2q+1RBCNYEJ9ztJBgXapc0 fEmy33ocf0h37thr0pCOo46YYdgdcbekqdWeEqZ8bDxm5EbVLIY7h2egFLEKqR0vjLEAlaDttNL B9prdC3ZeW4aFYr5HWsEPs0PNmMK3tSjqwIAjO8AG+dZgkyL8GNm3a0/kJPrhGts+0A== X-Gm-Gg: AY/fxX5sFsoAY26qcd+GMAXsGE07cpeJTnNhuGXXl4ZwbsbRyeQeuM9NLu2PN7+jK5b Qh0H34it3PM3nN5Qk1EUZ5QlpwYuGLSjPvbPHORkIZ0e4l8lbSX1WG/9P4LYOezzbLz5F+rcnSp ehgbBKJumGBB8izenNZsUrnJBrURMMQMRpeWI8oTBVr8qRVpl4lArQIB6/GuTDu8vzHX1xzZ0UC 1OoAnBGVVC9VKQAgX77sdbevviepiFpCtJDarJ3hJXvJGDLFuHykxWnBPJmxmySrITQ9bB9itr0 npv8lNNwZCk/N0SwN14uU6U3bpxgX6EJ2pVlOgUmXvF8mzDyTJhN9CwrOE+kVR3u1zO0u1J2+1u 7501dAzfRKh5QeVg= X-Received: by 2002:a05:6102:952:b0:5ef:24aa:986f with SMTP id ada2fe7eead31-5ef24aaa8aemr42517137.2.1767907171065; Thu, 08 Jan 2026 13:19:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHR8SU0cC6J7ZM6ORTAUjC6oyDRWxh5N7rfmic1Z80tAO+vimFrecGsZaskUobrNYaLX9pXEw== X-Received: by 2002:a05:6102:952:b0:5ef:24aa:986f with SMTP id ada2fe7eead31-5ef24aaa8aemr42510137.2.1767907170711; Thu, 08 Jan 2026 13:19:30 -0800 (PST) Received: from [10.30.226.224] ([2600:382:811f:d757:daa5:b867:12a3:9d12]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-5ec77064e86sm7623329137.7.2026.01.08.13.19.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 13:19:30 -0800 (PST) From: Brian Masney Date: Thu, 08 Jan 2026 16:16:45 -0500 Subject: [PATCH 27/27] clk: divider: remove divider_round_rate() and divider_round_rate_parent() 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: <20260108-clk-divider-round-rate-v1-27-535a3ed73bf3@redhat.com> References: <20260108-clk-divider-round-rate-v1-0-535a3ed73bf3@redhat.com> In-Reply-To: <20260108-clk-divider-round-rate-v1-0-535a3ed73bf3@redhat.com> To: Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Masney X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2813; i=bmasney@redhat.com; s=20250903; h=from:subject:message-id; bh=7gS8R9ubIL8YOU5prWLYeLbasyiJ1ewi1xZXoJO78ak=; b=owGbwMvMwCW2/dJd9di6A+2Mp9WSGDIT5Hb58B//GHHWfp3R8+QtIk27eMQ+zz2hs6VFrSDP2 pNxNducjlIWBjEuBlkxRZYluUYFEamrbO/d0WSBmcPKBDKEgYtTACbCfYGRYRd/E+/ZHfFxSj0d Gda2HWIC9Tt+WLPJxM9+XF/IK+fpxvA/pPTY9AMiZYv/nDnyklXtWJpzfF66jrHAcrPZs1KKqyL 5AA== X-Developer-Key: i=bmasney@redhat.com; a=openpgp; fpr=A46D32705865AA3DDEDC2904B7D2DD275D7EC087 There are no remaining users of divider_round_rate() and divider_round_rate_parent(), so let's go ahead and remove them. Signed-off-by: Brian Masney --- drivers/clk/clk-divider.c | 22 ---------------------- include/linux/clk-provider.h | 13 ------------- 2 files changed, 35 deletions(-) diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 7e414017afa12c3838634ec030f960d8aa028b99..8439784ba08572dcd970d5d4ce3= 857c6c145763e 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/clk-divider.c @@ -387,28 +387,6 @@ int divider_ro_determine_rate(struct clk_hw *hw, struc= t clk_rate_request *req, } EXPORT_SYMBOL_GPL(divider_ro_determine_rate); =20 -long divider_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent, - unsigned long rate, unsigned long *prate, - const struct clk_div_table *table, - u8 width, unsigned long flags) -{ - struct clk_rate_request req; - int ret; - - clk_hw_init_rate_request(hw, &req, rate); - req.best_parent_rate =3D *prate; - req.best_parent_hw =3D parent; - - ret =3D divider_determine_rate(hw, &req, table, width, flags); - if (ret) - return ret; - - *prate =3D req.best_parent_rate; - - return req.rate; -} -EXPORT_SYMBOL_GPL(divider_round_rate_parent); - static int clk_divider_determine_rate(struct clk_hw *hw, struct clk_rate_request *req) { diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 000f4063e0d10e6772f6d2af7feb0de7741e7255..85f456be5f12ec46e86e5819643= fed3fe3790fcb 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -739,10 +739,6 @@ extern const struct clk_ops clk_divider_ro_ops; unsigned long divider_recalc_rate(struct clk_hw *hw, unsigned long parent_= rate, unsigned int val, const struct clk_div_table *table, unsigned long flags, unsigned long width); -long divider_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent, - unsigned long rate, unsigned long *prate, - const struct clk_div_table *table, - u8 width, unsigned long flags); int divider_determine_rate(struct clk_hw *hw, struct clk_rate_request *req, const struct clk_div_table *table, u8 width, unsigned long flags); @@ -1433,15 +1429,6 @@ static inline void __clk_hw_set_clk(struct clk_hw *d= st, struct clk_hw *src) dst->core =3D src->core; } =20 -static inline long divider_round_rate(struct clk_hw *hw, unsigned long rat= e, - unsigned long *prate, - const struct clk_div_table *table, - u8 width, unsigned long flags) -{ - return divider_round_rate_parent(hw, clk_hw_get_parent(hw), - rate, prate, table, width, flags); -} - /* * FIXME clock api without lock protection */ --=20 2.52.0