Re: [PATCH v2 4/4] drm/dp: fallback to maximum when PWM bit count is zero
From: Abel Vesa
Date: Thu Mar 27 2025 - 04:05:13 EST
On 25-03-25 19:21:29, Christopher Obbard wrote:
> Some eDP devices report DP_EDP_PWMGEN_BIT_COUNT as 0, but still provide
> valid non-zero MIN and MAX values. This patch reworks the logic to
> fallback to the max value in such cases, ensuring correct backlight PWM
> configuration even when the bit count value is not explicitly set.
>
> This improves compatibility with eDP panels (e.g. Samsung ATNA40YK20
> used on the Lenovo T14s Gen6 Snapdragon with OLED panel) which reports
> DP_EDP_PWMGEN_BIT_COUNT as 0 but still provides valid non-zero MIN/MAX
> values.
>
Nit-pick: AFAICT, there is no relationship between this patch and the
rest. So it should've probably not be part of this patchset.