From: Luca Ceresoli <luca.ceresoli@bootlin.com>
To: Francesco Dolcini <francesco@dolcini.it>
Cc: linux-pm@vger.kernel.org, imx@lists.linux.dev,
"Ulf Hansson" <ulf.hansson@linaro.org>,
"Shawn Guo" <shawnguo@kernel.org>,
"Sascha Hauer" <s.hauer@pengutronix.de>,
"Pengutronix Kernel Team" <kernel@pengutronix.de>,
"Fabio Estevam" <festevam@gmail.com>,
"Peng Fan" <peng.fan@nxp.com>, "Marek Vasut" <marex@denx.de>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
"Lucas Stach" <l.stach@pengutronix.de>,
"Jindong Yue" <jindong.yue@nxp.com>,
"Benjamin Gaignard" <benjamin.gaignard@collabora.com>,
"Paul Elder" <paul.elder@ideasonboard.com>,
"Hervé Codina" <herve.codina@bootlin.com>
Subject: Re: imx8m-blk-ctrl: WARNING, no release() function
Date: Mon, 16 Dec 2024 23:54:56 +0100 [thread overview]
Message-ID: <20241216235456.3a6b07a2@booty> (raw)
In-Reply-To: <20241212141003.GA44219@francesco-nb>
Hi Francesco,
+Cc: Jindong, Benjamin, Paul (recent committers, in lack of an
imx8m-blk-ctrl.c maintainer)
+Cc: Hervé (stumbled on this issue too)
On Thu, 12 Dec 2024 15:10:03 +0100
Francesco Dolcini <francesco@dolcini.it> wrote:
> Hello,
> on v6.13-rc2 (PREEMPT_RT, if it matters), I have the following warning
>
> [ 4.615793] ------------[ cut here ]------------
> [ 4.615814] Device 'mediablk-mipi-csi2-1' does not have a release() function, it is broken and must be fixed. See Documentation/core-api/kobject.rst.
Thanks for the report. It is happening also here after upgrading from
6.13-rc1 to 6.13-rc3.
This originates from drivers/pmdomain/imx/imx8m-blk-ctrl.c
I bisected and the initial commit exposing this warning is:
commit b8f7bbd1f4ecff6d6277b8c454f62bb0a1c6dbe4
Author: Ulf Hansson <ulf.hansson@linaro.org>
Date: Fri Nov 22 14:42:02 2024 +0100
pmdomain: core: Add missing put_device()
When removing a genpd we don't clean up the genpd->dev correctly. Let's add
the missing put_device() in genpd_free_data() to fix this.
Fixes: 401ea1572de9 ("PM / Domain: Add struct device to genpd")
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Message-ID: <20241122134207.157283-2-ulf.hansson@linaro.org>
Superficially, it looks to me like a legitimate commit which exposes a
pre-existing flaw in drivers/pmdomain/imx/imx8m-blk-ctrl.c.
I have no more info at the moment.
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2024-12-16 22:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 14:10 imx8m-blk-ctrl: WARNING, no release() function Francesco Dolcini
2024-12-16 22:54 ` Luca Ceresoli [this message]
2024-12-17 1:39 ` Peng Fan
2024-12-17 8:42 ` Luca Ceresoli
2024-12-17 9:37 ` Lucas Stach
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=20241216235456.3a6b07a2@booty \
--to=luca.ceresoli@bootlin.com \
--cc=benjamin.gaignard@collabora.com \
--cc=festevam@gmail.com \
--cc=francesco@dolcini.it \
--cc=herve.codina@bootlin.com \
--cc=imx@lists.linux.dev \
--cc=jindong.yue@nxp.com \
--cc=kernel@pengutronix.de \
--cc=l.stach@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=marex@denx.de \
--cc=paul.elder@ideasonboard.com \
--cc=peng.fan@nxp.com \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=ulf.hansson@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.