All of lore.kernel.org
 help / color / mirror / Atom feed
From: Suraj Kandpal <suraj.kandpal@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH 03/10] drm/i915/hdcp: Refactor intel_dp_hdcp2_capable
Date: Thu,  1 Feb 2024 01:02:34 +0530	[thread overview]
Message-ID: <20240131193240.938405-4-suraj.kandpal@intel.com> (raw)
In-Reply-To: <20240131193240.938405-1-suraj.kandpal@intel.com>

Break intel_dp_hdcp2_capable so that the common the code can be
reused for the remote capability check.

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
index defc90936317..9aeee6b49b3d 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
@@ -636,8 +636,8 @@ int intel_dp_hdcp2_check_link(struct intel_digital_port *dig_port,
 }
 
 static
-int intel_dp_hdcp2_capable(struct intel_connector *connector,
-			   bool *capable)
+int _intel_dp_hdcp2_capable(struct drm_dp_aux *aux,
+			    bool *capable)
 {
 	struct intel_digital_port *dig_port = intel_attached_dig_port(connector);
 	struct drm_dp_aux *aux = &dig_port->dp.aux;
@@ -658,6 +658,16 @@ int intel_dp_hdcp2_capable(struct intel_connector *connector,
 	return 0;
 }
 
+static
+int intel_dp_hdcp2_capable(struct intel_connector *connector,
+			   bool *capable)
+{
+	struct intel_digital_port *dig_port = intel_attached_dig_port(connector);
+	struct drm_dp_aux *aux = &dig_port->dp.aux;
+
+	return _intel_dp_hdcp2_capable(aux, capable);
+}
+
 static const struct intel_hdcp_shim intel_dp_hdcp_shim = {
 	.write_an_aksv = intel_dp_hdcp_write_an_aksv,
 	.read_bksv = intel_dp_hdcp_read_bksv,
-- 
2.25.1


  parent reply	other threads:[~2024-01-31 19:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-31 19:32 [PATCH 00/10] HDCP Type1 MST fixes Suraj Kandpal
2024-01-31 19:32 ` [PATCH 01/10] drm/i915/hdcp: Move to direct reads for HDCP Suraj Kandpal
2024-01-31 19:32 ` [PATCH 02/10] drm/i915/hdcp: Move source hdcp2 checks into its own function Suraj Kandpal
2024-01-31 19:32 ` Suraj Kandpal [this message]
2024-01-31 19:32 ` [PATCH 04/10] drm/i915/hdcp: Pass drm_dp_aux to read_bcaps function Suraj Kandpal
2024-01-31 19:32 ` [PATCH 05/10] drm/i915/hdcp: Add new remote capability check shim function Suraj Kandpal
2024-01-31 19:32 ` [PATCH 06/10] drm/i915/hdcp: HDCP Capability for the downstream device Suraj Kandpal
2024-01-31 19:32 ` [PATCH 07/10] drm/i915/hdcp: Remove additional timing for reading mst hdcp message Suraj Kandpal
2024-01-31 19:32 ` [PATCH 08/10] drm/i915/hdcp: Extract hdcp structure from correct connector Suraj Kandpal
2024-01-31 19:32 ` [PATCH 09/10] drm/i915/hdcp: Allocate stream id after HDCP AKE stage Suraj Kandpal
2024-01-31 19:39 [PATCH 00/10] HDCP Type1 MST fixes Suraj Kandpal
2024-01-31 19:39 ` [PATCH 03/10] drm/i915/hdcp: Refactor intel_dp_hdcp2_capable Suraj Kandpal
2024-02-02  4:31   ` Nautiyal, Ankit K
2024-02-02  4:33   ` Nautiyal, Ankit K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240131193240.938405-4-suraj.kandpal@intel.com \
    --to=suraj.kandpal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.