From: Robin Murphy <robin.murphy@arm.com>
To: Hongbo Yao <andy.xu@hj-micro.com>, will@kernel.org
Cc: mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, allen.wang@hj-micro.com,
peter.du@hj-micro.com
Subject: Re: [PATCH] perf: arm-ni: Fix missing platform_set_drvdata()
Date: Tue, 1 Apr 2025 15:04:13 +0100 [thread overview]
Message-ID: <d6ccc357-85fe-4b3e-95d0-127c2784ae85@arm.com> (raw)
In-Reply-To: <20250401054248.3985814-1-andy.xu@hj-micro.com>
On 2025-04-01 6:42 am, Hongbo Yao wrote:
> Add missing platform_set_drvdata in arm_ni_probe(), otherwise
> calling platform_get_drvdata() in remove returns NULL.
Oops, indeed. Not sure how that got lost...
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
> Fixes: 4d5a7680f2b4 ("perf: Add driver for Arm NI-700 interconnect PMU")
> Signed-off-by: Hongbo Yao <andy.xu@hj-micro.com>
> ---
> drivers/perf/arm-ni.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/perf/arm-ni.c b/drivers/perf/arm-ni.c
> index ee85577e86b9..da1907b7391d 100644
> --- a/drivers/perf/arm-ni.c
> +++ b/drivers/perf/arm-ni.c
> @@ -666,6 +666,7 @@ static int arm_ni_probe(struct platform_device *pdev)
> ni->num_cds = num_cds;
> ni->part = part;
> ni->id = atomic_fetch_inc(&id);
> + platform_set_drvdata(pdev, ni);
>
> for (int v = 0; v < cfg.num_components; v++) {
> reg = readl_relaxed(cfg.base + NI_CHILD_PTR(v));
next parent reply other threads:[~2025-04-01 14:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250401054248.3985814-1-andy.xu@hj-micro.com>
2025-04-01 14:04 ` Robin Murphy [this message]
2025-04-17 14:27 ` Will Deacon
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=d6ccc357-85fe-4b3e-95d0-127c2784ae85@arm.com \
--to=robin.murphy@arm.com \
--cc=allen.wang@hj-micro.com \
--cc=andy.xu@hj-micro.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=peter.du@hj-micro.com \
--cc=will@kernel.org \
/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
all inboxes | Powered by JetHome®