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)
commitf12110afee058a2e6e816e315d3291765625cc87
treec3861b45a3f5f9217ce3641c041e62c638529212
parent00a16d02f4df8383e34d6ed81accc48b8f1b8143
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