]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dp: Program source OUI on eDP panels
authorLyude Paul <lyude@redhat.com>
Fri, 4 Dec 2020 22:35:55 +0000 (17:35 -0500)
committerJani Nikula <jani.nikula@intel.com>
Wed, 23 Dec 2020 14:58:04 +0000 (16:58 +0200)
commit0944e721c4dfb97a21274890309cdc1fa96d9e5b
treec3861b45a3f5f9217ce3641c041e62c638529212
parent18c0f6b1fc406bc358b623e67ebae10704b6f6c0
drm/i915/dp: Program source OUI on eDP panels

Since we're about to start adding support for Intel's magic HDR
backlight interface over DPCD, we need to ensure we're properly
programming this field so that Intel specific sink services are exposed.
Otherwise, 0x300-0x3ff will just read zeroes.

We also take care not to reprogram the source OUI if it already matches
what we expect. This is just to be careful so that we don't accidentally
take the panel out of any backlight control modes we found it in.

v2:
* Add careful parameter to intel_edp_init_source_oui() to avoid
  re-writing the source OUI if it's already been set during driver
  initialization

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: thaytan@noraisin.net
Cc: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201204223603.249878-2-lyude@redhat.com
drivers/gpu/drm/i915/display/intel_dp.c