On 11/25/26 14:08, David Heidelberg via B4 Relay wrote:
From: David Heidelberg <[email protected]>

The vendor changed the value multiple times. Last value for production
devices was 900. HBM can go up to 1023, but keep value safe for now.

Fixes: 069a6c0e94f9 ("drm: panel: Add LG sw43408 panel driver")
Signed-off-by: David Heidelberg <[email protected]>
---
  drivers/gpu/drm/panel/panel-lg-sw43408.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panel/panel-lg-sw43408.c 
b/drivers/gpu/drm/panel/panel-lg-sw43408.c
index 822318f546ef3..92cab6478ea61 100644
--- a/drivers/gpu/drm/panel/panel-lg-sw43408.c
+++ b/drivers/gpu/drm/panel/panel-lg-sw43408.c
@@ -197,17 +197,18 @@ static const struct backlight_ops sw43408_backlight_ops = 
{
  };
static int sw43408_backlight_init(struct sw43408_panel *ctx)
  {
        struct device *dev = &ctx->link->dev;
        const struct backlight_properties props = {
                .type = BACKLIGHT_PLATFORM,
                .brightness = 255,
-               .max_brightness = 255,
+               /* HBM can go up to 1023, stay safe for now */
+               .max_brightness = 900,
        };
ctx->base.backlight = devm_backlight_device_register(dev, dev_name(dev), dev,
                                                             ctx->link,
                                                             
&sw43408_backlight_ops,
                                                             &props);
if (IS_ERR(ctx->base.backlight))


Reviewed-by: Neil Armstrong <[email protected]>

Thanks,
Neil

Reply via email to