From: Mike Tipton <quic_mdtipton@quicinc.com>
To: Johan Hovold <johan+linaro@kernel.org>,
Georgi Djakov <djakov@kernel.org>
Cc: Bjorn Andersson <andersson@kernel.org>,
<linux-pm@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Odelu Kukatla <quic_okukatla@quicinc.com>
Subject: Re: [PATCH RESEND v2] interconnect: drop unused icc_get() interface
Date: Tue, 20 Jun 2023 14:57:17 -0700 [thread overview]
Message-ID: <37dcbd3c-1e41-023c-8bbd-19cf9c9f151b@quicinc.com> (raw)
In-Reply-To: <20230523095248.25211-1-johan+linaro@kernel.org>
On 5/23/2023 2:52 AM, Johan Hovold wrote:
> The icc_get() interface can be used to lookup an interconnect path based
> on global node ids. There has never been any users of this interface and
> all lookups are currently done from the devicetree.
>
> Remove the unused icc_get() interface.
>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
>
> Hi Georgi,
>
> I just noticed that this patch never made it into 6.4 along with the
> rest of the series:
>
> https://lore.kernel.org/lkml/20230306075651.2449-23-johan+linaro@kernel.org/
>
> This interface is still unused in mainline and should be removed so
> resending the patch again.
>
> Johan
>
>
> drivers/interconnect/core.c | 52 ++----------------------------------
> include/linux/interconnect.h | 8 ------
> 2 files changed, 2 insertions(+), 58 deletions(-)
>
We have downstream debug/test modules that removing icc_get() will
break. I'd like to get equivalent debug support in mainline, but until
then I'd prefer we not remove this.
Our debug module adds debugfs files for requesting a path and voting BW
to it. The path is defined by supplying the raw src_id / dst_id and
calling icc_get() for them. This allows us to issue any request to any
path from debugfs without needing to recompile or reflash devicetree. We
use this extensively.
That said, I don't like the current implementation of icc_get(). It
should take strings for src/dst rather than integer IDs. This would be
similar to other interfaces like clk_get() and regulator_get(). And
would allow users to specify their path in debugfs using logical names
rather than raw integers.
I suspect having a mainline approach for voting paths from debugfs would
be useful to others as well. There are similar debugfs control
mechanisms in other frameworks already, e.g. clock.
Instead of removing icc_get() immediately, can we wait for a future
patch series that adds debugfs as a consumer?
next prev parent reply other threads:[~2023-06-20 21:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-23 9:52 [PATCH RESEND v2] interconnect: drop unused icc_get() interface Johan Hovold
2023-05-23 12:09 ` Bjorn Andersson
2023-06-20 21:57 ` Mike Tipton [this message]
2023-06-21 8:34 ` Johan Hovold
2023-06-21 14:10 ` Mike Tipton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=37dcbd3c-1e41-023c-8bbd-19cf9c9f151b@quicinc.com \
--to=quic_mdtipton@quicinc.com \
--cc=andersson@kernel.org \
--cc=djakov@kernel.org \
--cc=johan+linaro@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=quic_okukatla@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox