From: "Luca Ceresoli" <luca.ceresoli@bootlin.com>
To: "Fabio Estevam" <festevam@gmail.com>,
"Luca Ceresoli" <luca.ceresoli@bootlin.com>
Cc: <laurentiu.palcu@oss.nxp.com>, <dri-devel@lists.freedesktop.org>,
<imx@lists.linux.dev>, <marek.vasut@mailbox.org>,
<mripard@kernel.org>, <stable@vger.kernel.org>
Subject: Re: [PATCH v2] drm/mxsfb: lcdif: Fix use-after-free on unbind
Date: Tue, 24 Nov 2026 18:25:23 +0100 [thread overview]
Message-ID: <DN3M7GTHXWPH.3QU65NZ86T85A@bootlin.com> (raw)
In-Reply-To: <CAOMZO5ALfN-zGZuVn7tm9gpg+1yO1tQGKt+O2NXem14hbr+_6g@mail.gmail.com>
Hello Fabio,
On Tue Nov 24, 2026 at 12:18 PM CET, Fabio Estevam wrote:
> Hi Luca,
>
> On Tue, Nov 24, 2026 at 6:36 AM Luca Ceresoli <luca.ceresoli@bootlin.com> wrote:
>
>> I'm OK with the change (except a small nit, see below), but I have a
>> general question: is there any valid use case for removing the lcdif, other
>> than testing?
>
> Yes, the motivation for removing the lcdif was to help decrease power
> consumption on an i.MX8MP board.
Uhm, not sure this is the right way to save power... This driver implements
RPM, so in theory it should not consume any resource except allocated
memory when probed but unused.
Did you measure to power consumption in the unbound VS probed-but-unused
cases?
>> No need to use the @ret temporary variable, just replace it with:
>>
>> if (IS_ERR(encoder))
>> return dev_err_probe(dev, PTR_ERR(encoder),
>> "Failed to initialize encoder for endpoint%u\n",
>> of_ep.id);
>>
>> With that done you can send v3 and add:
>> +Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
>> +Tested-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
>
> Thanks for the suggestion. I'll send v3.
Anyway the v3 patch makes sense, added it to my TODO-apply list. Thanks!
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
prev parent reply other threads:[~2026-11-24 17:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 22:33 [PATCH v2] drm/mxsfb: lcdif: Fix use-after-free on unbind Fabio Estevam
2026-11-24 9:36 ` Luca Ceresoli
2026-11-24 11:18 ` Fabio Estevam
2026-11-24 17:25 ` Luca Ceresoli [this message]
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=DN3M7GTHXWPH.3QU65NZ86T85A@bootlin.com \
--to=luca.ceresoli@bootlin.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=laurentiu.palcu@oss.nxp.com \
--cc=marek.vasut@mailbox.org \
--cc=mripard@kernel.org \
--cc=stable@vger.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