]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Auto detect DPCD backlight support by default
authorLyude Paul <lyude@redhat.com>
Thu, 16 Jan 2020 21:16:12 +0000 (16:16 -0500)
committerJani Nikula <jani.nikula@intel.com>
Fri, 17 Jan 2020 11:41:12 +0000 (13:41 +0200)
commit09b7e74f45a789637a47c9ac4bcfd5a48c301bff
treeb06dfc83f259426a4bd43d7b09542531600bf197
parentcc98742d6b109e18acc482a18f7b8b75e71d5fd1
drm/i915: Auto detect DPCD backlight support by default

Turns out we actually already have some companies, such as Lenovo,
shipping machines with AMOLED screens that don't allow controlling the
backlight through the usual PWM interface and only allow controlling it
through the standard EDP DPCD interface. One example of one of these
laptops is the X1 Extreme 2nd Generation.

Since we've got systems that need this turned on by default now to have
backlight controls working out of the box, let's start auto-detecting it
for systems by default based on what the VBT tells us. We do this by
changing the default value for the enable_dpcd_backlight module param
from 0 to -1.

Tested-by: AceLan Kao <acelan.kao@canonical.com>
Tested-by: Perry Yuan <pyuan@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200116211623.53799-6-lyude@redhat.com
drivers/gpu/drm/i915/i915_params.c
drivers/gpu/drm/i915/i915_params.h