Files
linux/drivers/gpu/drm/display
Val Packett 4aa8961b1b drm/dp: drm_edp_backlight_set_level: do not always send 3-byte commands
At least some panels using the LSB register are not happy with the
unconditional increase of the command buffer to 3 bytes.

With the BOE NE14QDM in my Dell Latitude 7455, the recent patches for
luminance based brightness have introduced a regression: the brightness
range stopped being contiguous and became nonsensical (it probably was
interpreting the last 2 bytes of the buffer and not the first 2).

Change from using a fixed sizeof() to a length variable that's only
set to 3 when luminance is used. Let's leave the default as 2 even for
the single-byte version, since that's how it worked before.

Fixes: f2db78e37f ("drm/dp: Modify drm_edp_backlight_set_level")
Signed-off-by: Val Packett <[email protected]>
Tested-by: Abel Vesa <[email protected]>
Reviewed-by: Suraj Kandpal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Baryshkov <[email protected]>
2025-08-21 13:41:59 +03:00
..
2025-05-21 01:35:16 +03:00