From: Linus Walleij <linus.walleij@linaro.org>
To: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Jingoo Han <jingoohan1@gmail.com>,
Lee Jones <lee.jones@linaro.org>,
"open list:DRM PANEL DRIVERS" <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH] backlight: ktd253: Bring up in a known state
Date: Tue, 9 Feb 2021 11:10:59 +0100 [thread overview]
Message-ID: <CACRpkdY6ez23qHq2r0XxFqA4FO7A0d2WmytKY5iaM5=HrqYVrQ@mail.gmail.com> (raw)
In-Reply-To: <20210205172718.dajtb5yc3haatz3z@maple.lan>
On Fri, Feb 5, 2021 at 6:27 PM Daniel Thompson
<daniel.thompson@linaro.org> wrote:
> On Tue, Jan 26, 2021 at 10:32:00PM +0100, Linus Walleij wrote:
> > The KTD253 backlight might already be on when the driver
> > is probed: then we don't really know what the current
> > ratio is and all light intensity settings will be off
> > relative to what it was at boot.
> >
> > To fix this, bring up the backlight OFF then move it to
> > the default backlight from there so we know the state.
> >
> > Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
>
> Hmnnn... horid, since the backlight will flicker during boot,
> but I recall that this bit of hardware is pretty horid anyway
> so it is not easily avoided.
>
> Therefore, slightly grudgingly,
> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Thanks, and I agree, this makes things better than before though.
The actual problem translates to the generic problem of bringing
misc boot-time conditions over to the kernel, and handing over
any type of hardware in a half-initialized state. We don't really have
a solution to that yet, many have tried.
For this specific case, one can imagine a "kinetic,boot-time-brightness"
(or similar) DT property, with the idea that the boot loader or
DT author knows what to put in there. I put that on my TODO
(the code in this patch will still needed if that property isn't provided).
Yours,
Linus Walleij
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2021-02-09 10:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-26 21:32 [PATCH] backlight: ktd253: Bring up in a known state Linus Walleij
2021-02-05 17:27 ` Daniel Thompson
2021-02-09 10:10 ` Linus Walleij [this message]
2021-02-09 14:10 ` Lee Jones
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='CACRpkdY6ez23qHq2r0XxFqA4FO7A0d2WmytKY5iaM5=HrqYVrQ@mail.gmail.com' \
--to=linus.walleij@linaro.org \
--cc=daniel.thompson@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jingoohan1@gmail.com \
--cc=lee.jones@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).