Re: [PATCH 4/4] backlight: ktz8866: add definitions to make it more readable

2025-04-10 Thread Daniel Thompson
On Mon, Apr 07, 2025 at 05:51:19PM +0800, Pengyu Luo wrote: > LSB, MSB and their handling are slightly confused, so improve it. > > Signed-off-by: Pengyu Luo > --- > drivers/video/backlight/ktz8866.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/video/ba

Re: [PATCH 2/4] backlight: ktz8866: add slave handler

2025-04-10 Thread Daniel Thompson
On Mon, Apr 07, 2025 at 05:51:17PM +0800, Pengyu Luo wrote: > Kinetic ktz8866, found in many android devices, nowadays, some oem use > dual ktz8866 to support a larger panel and higher brightness, original > driver would only handle half backlight region on these devices, > registering it twice is

Re: [PATCH 3/4] backlight: ktz8866: improve current sinks setting

2025-04-07 Thread Daniel Thompson
On Mon, Apr 07, 2025 at 05:51:18PM +0800, Pengyu Luo wrote: > I polled all registers when the module was loading, found that > current sinks have already been configured. Bootloader would set > when booting. So checking it before setting the all channels. Can you rephrase this so the problem and s

Re: [PATCH v3 07/11] backlight: lcd: Move event handling into helpers

2025-04-05 Thread Daniel Thompson
. > > Signed-off-by: Thomas Zimmermann Reviewed-by: Daniel Thompson (RISCstar) Daniel.

Re: [PATCH v3 04/11] backlight: Implement fbdev tracking with blank state from event

2025-04-05 Thread Daniel Thompson
ay. Removing fbdev internals makes backlight > drivers easier to integrate into other display drivers, such as DRM. > > Signed-off-by: Thomas Zimmermann Reviewed-by: Daniel Thompson (RISCstar) Daniel.

Re: [PATCH RFC] backlight: pwm_bl: Read back PWM period from provider

2025-04-05 Thread Daniel Thompson
On Thu, Feb 27, 2025 at 04:06:47AM +0100, Sebastian Reichel wrote: > Hi, > > On Wed, Feb 26, 2025 at 05:34:50PM +0100, Uwe Kleine-König wrote: > > On Wed, Feb 26, 2025 at 05:31:08PM +0200, Abel Vesa wrote: > > > The current implementation assumes that the PWM provider will be able to > > > meet the

Re: [PATCH v3] backlight: pm8941: Add NULL check in wled_configure()

2025-04-04 Thread Daniel Thompson
On Tue, Apr 01, 2025 at 04:29:50PM +0800, Henry Martin wrote: > The function wled_configure() uses devm_kasprintf() without checking for > allocation failures, which could lead to NULL pointer dereferences. > > Add proper error handling when devm_kasprintf() fails by: > - Returning -ENOMEM immediat

Re: [PATCH] drivers: video: backlight: Fix NULL Pointer Dereference in backlight_device_register()

2025-04-01 Thread Daniel Thompson
Hi Haoyu On Wed, Feb 19, 2025 at 08:29:50PM +0800, Haoyu Li wrote: > As per Jani and Daniel's feedback, I have updated the patch so that > the `wled->name` null check now occurs in the `wled_configure` > function, right after the `devm_kasprintf` callsite. This should > resolve the issue. I'm afr

Re: [PATCH v3] backlight: pm8941: Add NULL check in wled_configure()

2025-04-01 Thread Daniel Thompson
vent this issue. > > Fixes: f86b77583d88 ("backlight: pm8941: Convert to using %pOFn instead of > device_node.name") > Reviewed-by: Dmitry Baryshkov > Signed-off-by: Henry Martin Reviewed-by: Daniel Thompson (RISCstar) Daniel.

Re: [PATCH] backlight: qcom-wled: Add NULL check in the wled_configure

2025-03-31 Thread Daniel Thompson
On Mon, Mar 31, 2025 at 05:12:45PM +0800, Henry Martin wrote: > When devm_kasprintf() fails, it returns a NULL pointer. However, this return > value is not properly checked in the function wled_configure. > > A NULL check should be added after the devm_kasprintf call to prevent > potential NULL p

Re: [PATCH v4 08/11] backlight: lcd: Replace fb events with a dedicated function call

2025-03-21 Thread Daniel Thompson
ACHABLE() in source file > - use lock guards > - initialize lcd list and list mutex > > Signed-off-by: Thomas Zimmermann > Acked-by: Simona Vetter Reviewed-by: Daniel Thompson (RISCstar) Daniel.

Re: [PATCH v4 06/11] backlight: Replace fb events with a dedicated function call

2025-03-21 Thread Daniel Thompson
test robot) I was convinced by the replies to other things in v4. Thanks! > v3: > - declare empty fb_bl_notify_blank() as static inline (kernel test robot) > > Signed-off-by: Thomas Zimmermann > Acked-by: Simona Vetter Reviewed-by: Daniel Thompson (RISCstar) Daniel.

Re: [PATCH v3 08/11] backlight: lcd: Replace fb events with a dedicated function call

2025-03-18 Thread Daniel Thompson
On Thu, Mar 06, 2025 at 03:05:50PM +0100, Thomas Zimmermann wrote: > Remove support for fb events from the lcd subsystem. Provide the > helper lcd_notify_blank_all() instead. In fbdev, call > lcd_notify_blank_all() to inform the lcd subsystem of changes > to a display's blank state. > > Fbdev maint

Re: [PATCH v3 06/11] backlight: Replace fb events with a dedicated function call

2025-03-18 Thread Daniel Thompson
On Thu, Mar 06, 2025 at 03:05:48PM +0100, Thomas Zimmermann wrote: > Remove support for fb events from backlight subsystem. Provide the > helper backlight_notify_blank_all() instead. Also export the existing > helper backlight_notify_blank() to update a single backlight device. > > In fbdev, call e

Re: [PATCH v3 05/11] backlight: Move blank-state handling into helper

2025-03-18 Thread Daniel Thompson
gt; manual locking with a guard. > > Signed-off-by: Thomas Zimmermann Reviewed-by: Daniel Thompson (RISCstar) Daniel.

Re: [PATCH v3 00/11] backlight, lcd, led: Remove fbdev dependencies

2025-03-17 Thread Daniel Thompson
On Mon, Mar 17, 2025 at 09:42:11AM +0100, Thomas Zimmermann wrote: > Hi > > Am 13.03.25 um 17:51 schrieb Lee Jones: > > On Thu, 06 Mar 2025, Thomas Zimmermann wrote: > > > > > This series removes the remaining dependencies on fbdev from the > > > backlight, lcd and led subsystems. Each depends on f

Re: [PATCH v1 1/2] dt-bindings: mfd: Document TI LM3533 MFD

2025-02-13 Thread Daniel Thompson
On Wed, Feb 12, 2025 at 09:58:41AM +0200, Svyatoslav Ryhel wrote: > Add bindings for the LM3533 - a complete power source for > backlight, keypad, and indicator LEDs in smartphone handsets. > The high-voltage inductive boost converter provides the > power for two series LED strings display backligh

Re: [PATCH] drivers: video: backlight: Fix NULL Pointer Dereference in backlight_device_register()

2025-02-13 Thread Daniel Thompson
On Mon, Feb 03, 2025 at 03:21:23PM +0200, Jani Nikula wrote: > On Thu, 30 Jan 2025, Haoyu Li wrote: > > In the function "wled_probe", the "wled->name" is dynamically allocated > > (wled_probe -> wled_configure -> devm_kasprintf), which is possible > > to be null. > > > > In the call trace: wled_pr

Re: [PATCH v5 RESEND 2/3] backlight: apple_dwi_bl: Add Apple DWI backlight driver

2025-02-13 Thread Daniel Thompson
te "Apple DWI 2-Wire Interface Backlight Driver" > + depends on ARCH_APPLE || COMPILE_TEST > + default y Sorry to pick this up late and on a resend but... I can't come up with any justification for "default y" in this driver. Other than that this is a really tidy driver so with that changed please add: Reviewed-by: Daniel Thompson (RISCstar) Daniel.

Re: [PATCH v4 2/3] backlight: dwi_bl: Add Apple DWI backlight driver

2025-01-09 Thread Daniel Thompson
On Thu, Jan 09, 2025 at 11:52:56PM +0800, Nick Chan wrote: > > Daniel Thompson 於 2025/1/8 下晝6:52 寫道: > > On Wed, Dec 11, 2024 at 07:34:38PM +0800, Nick Chan wrote: > >> Add driver for backlight controllers attached via Apple DWI 2-wire > >> interface, which is foun

Re: [PATCH v4 3/3] MAINTAINERS: Add entries for Apple DWI backlight controller

2025-01-08 Thread Daniel Thompson
On Wed, Dec 11, 2024 at 07:34:39PM +0800, Nick Chan wrote: > Add MAINTAINERS entries for the driver. > > Signed-off-by: Nick Chan Reviewed-by: Daniel Thompson (RISCstar) (keep this R-b if you rename any files) Daniel.

Re: [PATCH v4 2/3] backlight: dwi_bl: Add Apple DWI backlight driver

2025-01-08 Thread Daniel Thompson
On Wed, Dec 11, 2024 at 07:34:38PM +0800, Nick Chan wrote: > Add driver for backlight controllers attached via Apple DWI 2-wire > interface, which is found on some Apple iPhones, iPads and iPod touches > with a LCD display. > > Although there is an existing apple_bl driver, it is for backlight > co

Re: [PATCH v4 1/3] dt-bindings: leds: backlight: apple,dwi-bl: Add Apple DWI backlight

2025-01-08 Thread Daniel Thompson
On Wed, Dec 11, 2024 at 07:34:37PM +0800, Nick Chan wrote: > Add backlight controllers attached via Apple DWI 2-wire interface. > > Signed-off-by: Nick Chan Reviewed-by: Daniel Thompson (RISCstar) Daniel.

[PATCH 1/2] MAINTAINERS: Use Daniel Thompson's korg address for backlight work

2024-11-08 Thread Daniel Thompson
Going forward, I'll be using my kernel.org address for upstream work. Signed-off-by: Daniel Thompson --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index a274079502426887da55d55b83b9a17e74e

[PATCH 2/2] MAINTAINERS: Use Daniel Thompson's korg address for kgdb work

2024-11-08 Thread Daniel Thompson
Going forward, I'll be using my kernel.org address for upstream work. Signed-off-by: Daniel Thompson --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5396fd1b15aee1eb2a234ba8963c57571d5

[PATCH 0/2] MAINTAINERS: Update with Daniel Thompson's korg address

2024-11-08 Thread Daniel Thompson
Going forward, I'll be using my kernel.org address for upstream work. Signed-off-by: Daniel Thompson --- Daniel Thompson (2): MAINTAINERS: Use Daniel Thompson's korg address for backlight work MAINTAINERS: Use Daniel Thompson's korg address for kgdb work MAINTAIN

Re: [PATCH v2 2/5] dt-bindings: backlight: convert zii,rave-sp-backlight.txt to yaml

2024-10-14 Thread Daniel Thompson
On Thu, Oct 10, 2024 at 11:42:39AM -0400, Frank Li wrote: > Convert device tree binding doc zii,rave-sp-backlight.txt to yaml format. > Additional Changes: > - Remove mfd parent node at example. > - Ref to backlight's common.yaml > > Signed-off-by: Frank Li Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 2/5] dt-bindings: backlight: convert zii,rave-sp-backlight.txt to yaml

2024-10-09 Thread Daniel Thompson
On Tue, Oct 08, 2024 at 06:00:58PM -0400, Frank Li wrote: > Convert device tree binding doc zii,rave-sp-backlight.txt to yaml format. > Additional Changes: > - Remove mfd parent node at example. > - Ref to backlight's common.yaml > > Signed-off-by: Frank Li > --- > .../leds/backlight/zii,rave-sp-

Re: [PATCH] backlight: Remove notifier

2024-10-09 Thread Daniel Thompson
means that the backlight_notifier > > > list is always empty. > > > > > > Remove the functions, the list itself and the enum used in the > > > notifications. > > > > > > Signed-off-by: Dr. David Alan Gilbert > > > > Reviewed-by: Si

Re: [PATCH v4 6/8] backlight: led-backlight: add devlink to supplier LEDs

2024-09-19 Thread Daniel Thompson
On Tue, Sep 17, 2024 at 10:53:10AM +0200, Luca Ceresoli wrote: > led-backlight is a consumer of one or multiple LED class devices, but no > devlink is created for such supplier-producer relationship. One consequence > is that removal ordered is not correctly enforced. > > Issues happen for example

Re: [PATCH -next] backlight: ktz8866: fix module autoloading

2024-09-03 Thread Daniel Thompson
On Tue, Aug 20, 2024 at 12:16:28PM +, Liao Chen wrote: > Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded > based on the alias from of_device_id table. > > Signed-off-by: Liao Chen Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH -next] backlight: 88pm860x_bl: Simplify with scoped for each OF child loop

2024-09-03 Thread Daniel Thompson
On Thu, Aug 22, 2024 at 02:25:46PM +0800, Jinjie Ruan wrote: > Use scoped for_each_child_of_node_scoped() when iterating over device > nodes to make code a bit simpler. > > Signed-off-by: Jinjie Ruan Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 00/28] backlight: lcd: Remove fbdev dependencies

2024-09-03 Thread Daniel Thompson
[1] and [2]. > > Hopefully this series can be merged at once through the lcd tree. > > [1] https://patchwork.freedesktop.org/series/129782/ > [2] https://patchwork.freedesktop.org/series/134718/ I shared a could of nitpicks. You can do what you like with them since none are major enough to stop me also sharing a: Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 26/28] backlight: lcd: Replace check_fb with controls_device

2024-09-03 Thread Daniel Thompson
On Tue, Aug 20, 2024 at 11:23:04AM +0200, Thomas Zimmermann wrote: > Rename check_fb in struct lcd_ops with controls_device. The callback > is not independent from fbdev's struct fb_info and tests is an lcd > device controls a hardware display device. The new naming and semantics > follow similar f

Re: [PATCH 01/28] backlight: lcd: Rearrange code in fb_notifier_callback()

2024-09-03 Thread Daniel Thompson
On Tue, Aug 20, 2024 at 11:22:39AM +0200, Thomas Zimmermann wrote: > First aqcuire the ops_lock and do al tests while holing it. Rearranges s/aqcuire/acquire/ s/al/all/ > the code in lcd's fb_notifier_callback() to resemble the callback in > the backlight module. This will simplify later changes

Re: [PATCH v2] backlight: l4f00242t03: Add check for spi_setup

2024-07-05 Thread Daniel Thompson
On Fri, Jul 05, 2024 at 05:28:00PM +0800, Chen Ni wrote: > Add check for the return value of spi_setup() and return the error > if it fails in order to catch the error. > > Signed-off-by: Chen Ni Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH] backlight: l4f00242t03: Add check for spi_setup

2024-07-05 Thread Daniel Thompson
On Fri, Jul 05, 2024 at 04:38:34PM +0800, Chen Ni wrote: > Add check for the return value of spi_setup() and return the error > if it fails in order to catch the error. > > Signed-off-by: Chen Ni > --- > drivers/video/backlight/l4f00242t03.c | 5 - > 1 file changed, 4 insertions(+), 1 deletio

Re: [PATCH v2 00/17] backlight: Introduce power-state constants

2024-07-01 Thread Daniel Thompson
backlight power constants > backlight: pcf50633-backlight: Use backlight power constants > backlight: pwm-backlight: Use backlight power constants > backlight: rave-sp-backlight: Use backlight power constants > backlight: sky81452-backlight: Use backlight power constants Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH] backlight: Drop explicit initialization of struct i2c_device_id::driver_data to 0

2024-06-21 Thread Daniel Thompson
o initialization or named designators. But it's also a nice > cleanup on its own. > > While add it, also remove commas after the sentinel entries. > > Signed-off-by: Uwe Kleine-König Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH] backlight: lm3509_bl: Fix NULL vs IS_ERR() check in register() function

2024-06-13 Thread Daniel Thompson
; Signed-off-by: Dan Carpenter Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH] backlight: sky81452-backlight: replace of_node_put with __free

2024-05-01 Thread Daniel Thompson
On Wed, May 01, 2024 at 06:21:46PM +0530, R Sundar wrote: > Use the new cleanup magic to replace of_node_put() with > __free(device_node) marking to auto release when they get out of scope. > > Suggested-by: Julia Lawall > Signed-off-by: R Sundar Thanks for the patch but I think this one is a mo

Re: [PATCH v2 19/19] const_structs.checkpatch: add lcd_ops

2024-04-24 Thread Daniel Thompson
On Wed, Apr 24, 2024 at 08:33:45AM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core code. > > Suggested-by: Thomas Weißschuh > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH v2][next] backlight: sky81452-backlight: Remove unnecessary call to of_node_get

2024-04-22 Thread Daniel Thompson
On Sun, Apr 21, 2024 at 04:19:17PM +0530, Shresth Prasad wrote: > `dev->of_node` already has a reference to the device_node and calling > of_node_get on it is unnecessary. All conresponding calls to > of_node_put are also removed. > > Signed-off-by: Shresth Prasad Reviewed-b

Re: [PATCH][next] drivers: video: Simplify device_node cleanup using __free

2024-04-19 Thread Daniel Thompson
^^^ Please fix the subject line to be "backlight: : ...". I came very close to deleting this patch without reading it ;-) . On Fri, Apr 19, 2024 at 01:13:02AM +0530, Shresth Prasad wrote: > diff --git a/drivers/video/backlight/sky81452-backlight.c > b/drivers/video/backlight/sky81452-backlight.

Re: [PATCH v1 1/1] backlight: mp3309c: fix leds flickering in pwm mode

2024-04-18 Thread Daniel Thompson
kering on the LEDs powered by the mp3309c. > > This change concerns the chip initialization and does not impact any > existing device-tree configuration. > > Signed-off-by: Flavio Suligoi Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 00/18] backlight: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:35:58PM +0200, Krzysztof Kozlowski wrote: > Hi, > > Dependencies > > All further patches depend on the first patch. Therefore everything > could go via backlight tree (please ack) or via cross-tree pulls. Or > whatever maintainer choose, just coordinate this

Re: [PATCH 14/18] backlight: tdo24m: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:36:12PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 13/18] backlight: platform_lcd: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:36:11PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 12/18] backlight: otm3225a: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:36:10PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 11/18] backlight: ltv350qv: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:36:09PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 10/18] backlight: lms501kf03: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:36:08PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 09/18] backlight: lms283gf05: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:36:07PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 08/18] backlight: l4f00242t03: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:36:06PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 07/18] backlight: jornada720_lcd: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:36:05PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 06/18] backlight: ili9320: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:36:04PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 05/18] backlight: ili922x: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:36:03PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 04/18] backlight: hx8357: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:36:02PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 03/18] backlight: corgi_lcd: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:36:01PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 02/18] backlight: ams369fg06: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
On Sun, Apr 14, 2024 at 06:36:00PM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 01/18] backlight: Constify lcd_ops

2024-04-15 Thread Daniel Thompson
Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH] video: backlight: otm3225a: drop driver owner assignment

2024-04-02 Thread Daniel Thompson
On Wed, Mar 27, 2024 at 06:47:14PM +0100, Krzysztof Kozlowski wrote: > Core in spi_register_driver() already sets the .owner, so driver > does not need to. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH v5 2/2] backlight: Add new lm3509 backlight driver

2024-04-02 Thread Daniel Thompson
trol and sub/main control. > The datasheet can be found at http://www.ti.com/product/lm3509. > > Signed-off-by: Patrick Gansterer Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH v4 2/2] backlight: Add new lm3509 backlight driver

2024-03-25 Thread Daniel Thompson
^^^ Also not copied to LKML... On Sun, Mar 10, 2024 at 02:52:57PM +0100, Patrick Gansterer wrote: > This is a general driver for LM3509 backlight chip of TI. > LM3509 is High Efficiency Boost for White LEDs and/or OLED Displays with > Dual Current Sinks. This driver supports OLED/White LED select

Re: [PATCH v4 1/2] dt-bindings: backlight: Add Texas Instruments LM3509

2024-03-25 Thread Daniel Thompson
atch 1. Normally that would be posted in the covering letter rather than here. Nevertheless: Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 2/2] video: backlight: lcd: make lcd_class constant

2024-03-25 Thread Daniel Thompson
lared at build time > placing it into read-only memory, instead of having to be dynamically > allocated at boot time. > > Cc: Greg Kroah-Hartman > Suggested-by: Greg Kroah-Hartman > Signed-off-by: Ricardo B. Marliere Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 1/2] video: backlight: make backlight_class constant

2024-03-25 Thread Daniel Thompson
lared at build time > placing it into read-only memory, instead of having to be dynamically > allocated at boot time. > > Cc: Greg Kroah-Hartman > Suggested-by: Greg Kroah-Hartman > Signed-off-by: Ricardo B. Marliere Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH v2] backlight: lp8788: Drop support for platform data

2024-03-22 Thread Daniel Thompson
at's not an objection to this change: Reviewed-by: Daniel Thompson Daniel. > --- > Changes since (implicit) v1 archived at > https://lkml.kernel.org/20240313124828.861731-2-u.kleine-koe...@pengutronix.de: > > - Also drop struct pwm_device *pwm member from struct lp8788_bl &

Re: [PATCH v2 3/6] backlight: omap1: Replace FB_BLANK_ states with simple on/off

2024-03-19 Thread Daniel Thompson
nn > Reviewed-by: Dan Carpenter Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 6/6] backlight: Remove fb_blank from struct backlight_properties

2024-03-18 Thread Daniel Thompson
core and drivers and rely on the state field. > > Signed-off-by: Thomas Zimmermann > Cc: Flavio Suligoi > Cc: Nicolas Ferre > Cc: Alexandre Belloni > Cc: Claudiu Beznea Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 3/6] backlight/omap1-bl: Replace FB_BLANK_ states with simple on/off

2024-03-18 Thread Daniel Thompson
On Wed, Mar 13, 2024 at 04:45:02PM +0100, Thomas Zimmermann wrote: > The backlight is on for fb_blank eq FB_BLANK_UNBLANK, or off for > any other value in fb_blank. But the field fb_blank in struct > backlight_properties is deprecated and should not be used any > longer. > > Replace the test for fb

Re: [PATCH 2/6] backlight/omap1-bl: Remove unused struct omap_backlight_config.set_power

2024-03-18 Thread Daniel Thompson
On Wed, Mar 13, 2024 at 04:45:01PM +0100, Thomas Zimmermann wrote: > The callback set_power in struct omap_backlight_config is not > implemented anywhere. Remove it from the structure and driver. > > Signed-off-by: Thomas Zimmermann Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH] backlight: mp3309c: fix signedness bug in mp3309c_parse_fwnode()

2024-03-18 Thread Daniel Thompson
ative > sizes. However, it's still worth fixing. > > Fixes: b54c828bdba9 ("backlight: mp3309c: Make use of device properties") > Signed-off-by: Dan Carpenter Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH v2 1/7] backlight: gpio: Simplify with dev_err_probe()

2024-03-05 Thread Daniel Thompson
On Tue, Mar 05, 2024 at 09:11:56AM +0100, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and also it prints the error value. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 1/2] dt-bindings: backlight: Add Texas Instruments LM3509 bindings

2024-03-04 Thread Daniel Thompson
On Sat, Mar 02, 2024 at 10:27:56PM +0100, Patrick Gansterer wrote: > Add Device Tree bindings for Texas Instruments LM3509 - a > High Efficiency Boost for White LED's and/or OLED Displays > > Signed-off-by: Patrick Gansterer > --- > > + ti,unison-mode: > +description: | > + Enable uniso

Re: [PATCH 7/7] backlight: pandora_bl: Drop unneeded ENOMEM error message

2024-03-04 Thread Daniel Thompson
On Mon, Mar 04, 2024 at 11:11:44AM +0100, Krzysztof Kozlowski wrote: > Core code already prints detailed information about failure of memory > allocation. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 6/7] backlight: lm3630a_bl: Simplify probe return on gpio request error

2024-03-04 Thread Daniel Thompson
On Mon, Mar 04, 2024 at 11:11:43AM +0100, Krzysztof Kozlowski wrote: > Code can be simpler: return directly when devm_gpiod_get_optional() > failed. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 5/7] backlight: lm3630a_bl: Handle deferred probe

2024-03-04 Thread Daniel Thompson
On Mon, Mar 04, 2024 at 11:11:42AM +0100, Krzysztof Kozlowski wrote: > Don't pollute dmesg on deferred probe and simplify the code with > dev_err_probe(). > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 4/7] backlight: as3711_bl: Handle deferred probe

2024-03-04 Thread Daniel Thompson
On Mon, Mar 04, 2024 at 11:11:41AM +0100, Krzysztof Kozlowski wrote: > Don't pollute dmesg on deferred probe and simplify the code with > dev_err_probe(). > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 3/7] backlight: bd6107: Handle deferred probe

2024-03-04 Thread Daniel Thompson
On Mon, Mar 04, 2024 at 11:11:40AM +0100, Krzysztof Kozlowski wrote: > Don't pollute dmesg on deferred probe and simplify the code with > dev_err_probe(). > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 2/7] backlight: l4f00242t03: Simplify with dev_err_probe()

2024-03-04 Thread Daniel Thompson
On Mon, Mar 04, 2024 at 11:11:39AM +0100, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and also it prints the error value. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 1/7] backlight: gpio: Simplify with dev_err_probe()

2024-03-04 Thread Daniel Thompson
On Mon, Mar 04, 2024 at 11:11:38AM +0100, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and also it prints the error value. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/video/backlight/gpio_backlight.c | 10 ++

Re: [PATCH 3/4] backlight: lm3630a: Use backlight_get_brightness helper in update_status

2024-02-21 Thread Daniel Thompson
On Tue, Feb 20, 2024 at 05:43:32PM +0100, Luca Weiss wrote: > On Dienstag, 20. Februar 2024 15:11:07 CET Daniel Thompson wrote: > > On Tue, Feb 20, 2024 at 12:11:21AM +0100, Luca Weiss wrote: > > > As per documentation "drivers are expected to use this function in th

Re: [PATCH 4/4] ARM: dts: qcom: msm8974-hammerhead: Hook up backlight

2024-02-20 Thread Daniel Thompson
On Tue, Feb 20, 2024 at 05:45:32PM +0100, Luca Weiss wrote: > On Dienstag, 20. Februar 2024 15:12:10 CET Daniel Thompson wrote: > > On Tue, Feb 20, 2024 at 12:11:22AM +0100, Luca Weiss wrote: > > > Connect the panel with the backlight nodes so that the backlight can be > &g

Re: [PATCH 1/4] backlight: lm3630a: Initialize backlight_properties on init

2024-02-20 Thread Daniel Thompson
On Tue, Feb 20, 2024 at 03:07:54PM +0100, Konrad Dybcio wrote: > On 20.02.2024 00:11, Luca Weiss wrote: > > The backlight_properties struct should be initialized to zero before > > using, otherwise there will be some random values in the struct. > > > > Fixes: 0c2a665a648e ("backlight: add Backligh

[PATCH RESEND 2/4] backlight: lm3639: Fully initialize backlight_properties during probe

2024-02-20 Thread Daniel Thompson
props is stack allocated and the fields that are not explcitly set by the probe function need to be zeroed or we'll get undefined behaviour (especially so power/blank states)! Fixes: 0f59858d5119 ("backlight: add new lm3639 backlight driver") Signed-off-by: Daniel Thompson ---

[PATCH RESEND 3/4] backlight: lp8788: Fully initialize backlight_properties during probe

2024-02-20 Thread Daniel Thompson
props is stack allocated and the fields that are not explcitly set by the probe function need to be zeroed or we'll get undefined behaviour (especially so power/blank states)! Fixes: c5a51053cf3b ("backlight: add new lp8788 backlight driver") Signed-off-by: Daniel Thompson ---

[PATCH RESEND 1/4] backlight: da9052: Fully initialize backlight_properties during probe

2024-02-20 Thread Daniel Thompson
props is stack allocated and the fields that are not explcitly set by the probe function need to be zeroed or we'll get undefined behaviour (especially so power/blank states)! Fixes: 6ede3d832aaa ("backlight: add driver for DA9052/53 PMIC v1") Signed-off-by: Daniel Thompson ---

[PATCH RESEND 4/4] backlight: mp3309c: Fully initialize backlight_properties during probe

2024-02-20 Thread Daniel Thompson
props is stack allocated and, although this driver initializes all the fields that are not "owned" by the framework, we'd still like to ensure it is zeroed to avoid problems from this driver if the fields change. Signed-off-by: Daniel Thompson --- drivers/video/backlight/mp3309c.

[PATCH RESEND 0/4] Ensure all backlight drivers zero the properties structure

2024-02-20 Thread Daniel Thompson
sults follow in the next four patches (they could all be one patch but for the fact there are different Fixes: tags)! Daniel Thompson (4): backlight: da9052: Fully initialize backlight_properties during probe backlight: lm3639: Fully initialize backlight_properties during probe backlight: l

[PATCH 3/4] backlight: lp8788: Fully initialize backlight_properties during probe

2024-02-20 Thread Daniel Thompson
props is stack allocated and the fields that are not explcitly set by the probe function need to be zeroed or we'll get undefined behaviour (especially so power/blank states)! Fixes: c5a51053cf3b ("backlight: add new lp8788 backlight driver") Signed-off-by: Daniel Thompson ---

[PATCH 4/4] backlight: mp3309c: Fully initialize backlight_properties during probe

2024-02-20 Thread Daniel Thompson
props is stack allocated and, although this driver initializes all the fields that are not "owned" by the framework, we'd still like to ensure it is zeroed to avoid problems from this driver if the fields change. Signed-off-by: Daniel Thompson --- drivers/video/backlight/mp3309c.

[PATCH 2/4] backlight: lm3639: Fully initialize backlight_properties during probe

2024-02-20 Thread Daniel Thompson
props is stack allocated and the fields that are not explcitly set by the probe function need to be zeroed or we'll get undefined behaviour (especially so power/blank states)! Fixes: 0f59858d5119 ("backlight: add new lm3639 backlight driver") Signed-off-by: Daniel Thompson ---

[PATCH 1/4] backlight: da9052: Fully initialize backlight_properties during probe

2024-02-20 Thread Daniel Thompson
props is stack allocated and the fields that are not explcitly set by the probe function need to be zeroed or we'll get undefined behaviour (especially so power/blank states)! Fixes: 6ede3d832aaa ("backlight: add driver for DA9052/53 PMIC v1") Signed-off-by: Daniel Thompson ---

[PATCH 0/4] Ensure all backlight drivers zero the properties structure

2024-02-20 Thread Daniel Thompson
Fixes: tags)! Daniel Thompson (4): backlight: da9052: Fully initialize backlight_properties during probe backlight: lm3639: Fully initialize backlight_properties during probe backlight: lp8788: Fully initialize backlight_properties during probe backlight: mp3309c: Fully initialize

Re: [PATCH 4/4] ARM: dts: qcom: msm8974-hammerhead: Hook up backlight

2024-02-20 Thread Daniel Thompson
On Tue, Feb 20, 2024 at 12:11:22AM +0100, Luca Weiss wrote: > Connect the panel with the backlight nodes so that the backlight can be > turned off when the display is blanked. > > Signed-off-by: Luca Weiss Reviewed-by: Daniel Thompson > --- > arch/arm/boot/dts/qcom/qcom-

Re: [PATCH 3/4] backlight: lm3630a: Use backlight_get_brightness helper in update_status

2024-02-20 Thread Daniel Thompson
backlight_get_brightness() is already handling this correctly. > > Signed-off-by: Luca Weiss Reviewed-by: Daniel Thompson However... > --- > /* disable sleep */ > @@ -201,9 +202,9 @@ static int lm3630a_bank_a_update_status(struct > backlight_device *bl) >

Re: [PATCH 2/4] backlight: lm3630a: Don't set bl->props.brightness in get_brightness

2024-02-20 Thread Daniel Thompson
#x27; and just return the > value. > > Fixes: 0c2a665a648e ("backlight: add Backlight driver for lm3630 chip") > Signed-off-by: Luca Weiss Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 1/4] backlight: lm3630a: Initialize backlight_properties on init

2024-02-20 Thread Daniel Thompson
> Signed-off-by: Luca Weiss Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH 00/10] backlight: Replace struct fb_info in interfaces

2024-02-15 Thread Daniel Thompson
On Mon, Feb 12, 2024 at 05:16:33PM +0100, Thomas Zimmermann wrote: > Backlight drivers implement struct backlight_ops.check_fb, which > uses struct fb_info in its interface. Replace the callback with one > the does not use fb_info. > > In DRM, we have several drivers that implement backlight suppor

Re: [PATCH 10/10] backlight: Add controls_device callback to struct backlight_ops

2024-02-15 Thread Daniel Thompson
rivers that had custom implementations of check_fb can easily > use the framebuffer's Linux device instead. Update them accordingly. > > Signed-off-by: Thomas Zimmermann Reviewed-by: Daniel Thompson Daniel.

  1   2   3   4   5   6   7   8   >