linux-pwm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: lee@kernel.org, daniel.thompson@linaro.org, jingoohan1@gmail.com,
	deller@gmx.de, linus.walleij@linaro.org, f.suligoi@asem.it,
	ukleinek@kernel.org, dri-devel@lists.freedesktop.org,
	linux-fbdev@vger.kernel.org, linux-pwm@vger.kernel.org
Subject: Re: [PATCH 01/17] backlight: Add BL_CORE_ constants for power states
Date: Wed, 12 Jun 2024 12:18:02 +0200	[thread overview]
Message-ID: <20240612101802.GA595554@ravnborg.org> (raw)
In-Reply-To: <736884a4-8077-422d-8877-6ac4af58a85b@suse.de>

Hi Thomas,

On Wed, Jun 12, 2024 at 09:26:11AM +0200, Thomas Zimmermann wrote:
> Hi Sam,
> 
> long time no see.

Had some spare time between jobs, started on my new job last week.
Time will tell if there will be energy and time for hobby stuff.

> > 
> > On top of this - many users of the power states could benefit using the
> > backlight_enable()/backlight_disable() helpers, but that's another story.
> 
> Should I attempt to fix that? Many drivers appear to do something like
> 
>   props.brightness = ...
>   props.power = UNBLANK
>   backlight_update_status()
> 
> That's the same pattern as in backlight_enable().

I would keep the changes at a minimum, hoping someone else jumps in and
do the cleanup. Then you can keep the patches that remove the fbdev
dependency simple and easy to review (and thus get applied).
Maybe the obvious places, and do the simple replacement for the rest..

The drivers initialize and use the backlight properties in interesting
ways so that would require a bit more effort to implement and review.

I did it once for most of drm - but it was buggy so I ended up scrapping
the patches :-(

	Sam

  reply	other threads:[~2024-06-12 10:19 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-11 12:41 [PATCH 00/17] backlight: Introduce power-state constants Thomas Zimmermann
2024-06-11 12:41 ` [PATCH 01/17] backlight: Add BL_CORE_ constants for power states Thomas Zimmermann
2024-06-11 17:55   ` Sam Ravnborg
2024-06-12  7:26     ` Thomas Zimmermann
2024-06-12 10:18       ` Sam Ravnborg [this message]
2024-06-11 12:41 ` [PATCH 02/17] backlight: aat2870-backlight: Use blacklight power constants Thomas Zimmermann
2024-06-11 12:41 ` [PATCH 03/17] backlight: ams369fb06: Use backlight " Thomas Zimmermann
2024-06-11 12:41 ` [PATCH 04/17] backlight: corgi-lcd: " Thomas Zimmermann
2024-06-11 12:42 ` [PATCH 05/17] backlight: gpio-backlight: " Thomas Zimmermann
2024-06-11 12:42 ` [PATCH 06/17] backlight: ipaq-micro-backlight: " Thomas Zimmermann
2024-06-11 12:42 ` [PATCH 07/17] backlight: journada_bl: " Thomas Zimmermann
2024-06-11 12:42 ` [PATCH 08/17] backlight: kb3886-bl: " Thomas Zimmermann
2024-06-11 12:42 ` [PATCH 09/17] backlight: ktd253-backlight: " Thomas Zimmermann
2024-06-11 12:42 ` [PATCH 10/17] backlight: led-backlight: " Thomas Zimmermann
2024-06-11 12:42 ` [PATCH 11/17] backlight: lm3533-backlight: " Thomas Zimmermann
2024-06-11 12:42 ` [PATCH 12/17] backlight: mp3309c: " Thomas Zimmermann
2024-06-11 12:42 ` [PATCH 13/17] backlight: pandora-backlight: " Thomas Zimmermann
2024-06-11 12:42 ` [PATCH 14/17] backlight: pcf50633-backlight: " Thomas Zimmermann
2024-06-11 12:42 ` [PATCH 15/17] backlight: pwm-backlight: " Thomas Zimmermann
2024-06-11 12:42 ` [PATCH 16/17] backlight: rave-sp-backlight: " Thomas Zimmermann
2024-06-11 12:42 ` [PATCH 17/17] backlight: sky81452-backlight: " Thomas Zimmermann

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=20240612101802.GA595554@ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=daniel.thompson@linaro.org \
    --cc=deller@gmx.de \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=f.suligoi@asem.it \
    --cc=jingoohan1@gmail.com \
    --cc=lee@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=tzimmermann@suse.de \
    --cc=ukleinek@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;
as well as URLs for NNTP newsgroup(s).