]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove hdcp2_hdmi_msg_timeout.timeout2
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 10 Oct 2019 14:51:26 +0000 (17:51 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Oct 2019 14:10:19 +0000 (17:10 +0300)
commit7d93626862803b2b044f72f697d951fbd604b6dc
treef7dcde35bb5968b7ab40d326b9cf564bb9fff7b5
parent1cdc6d4532984289492755c5244b71ca0f0d3820
drm/i915: Remove hdcp2_hdmi_msg_timeout.timeout2

The only reason for the timeout2 value in the array is the
HDCP_2_2_AKE_SEND_HPRIME message. But that one still needs
special casing inside the loop, and so just ends up making
the code harder to read. Let's just remove this leaky
timeout2 abstraction and special case that one command
in a way that is easy to understand. We can then remove the
timeout2 member from struct entirely.

    text    data     bss     dec     hex filename
-  34633     360       0   34993    88b1 intel_hdmi.o
+  34521     360       0   34881    8841 intel_hdmi.o

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191010145127.7487-4-ville.syrjala@linux.intel.com
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
drivers/gpu/drm/i915/display/intel_hdmi.c