drm/i915/hdcp: Add more conditions to enable hdcp
authorSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 26 Oct 2023 12:11:40 +0000 (17:41 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 31 Oct 2023 09:43:35 +0000 (15:13 +0530)
commit3b9bbd79627043a9fa9dd5b01bb29882663976e0
treefe392334a11d55176c75ee88de85cd76b7317613
parent4f60f06a41f441cd5a8570c61701ba40796fa52c
drm/i915/hdcp: Add more conditions to enable hdcp

When we dock a monitor we end up with a enable and disable connector
cycle but if hdcp content is running we get the userspace in
enabled state and driver maintaining a undesired state which causes
the content to stop playing and we only enable hdcp if the userspace
state in desired. This patch fixes that.

--v2
-Move code to intel_hdcp [Jani]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231026121139.987437-4-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_hdcp.c