Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d82d0d9 authored by Govinda Rajulu Chenna's avatar Govinda Rajulu Chenna Committed by Gerrit - the friendly Code Review server
Browse files

drm/dp: export remote dpcd read/write from drm_dp_mst_topology



This change exports remote dpcd read/write functions from
drm_dp_mst_topology layer in order to read/write dpcd for
a select dp mst port.

Change-Id: Ib91b71079c2ecbc3702fb89839e46771365c326a
Signed-off-by: default avatarGovinda Rajulu Chenna <gchenna@codeaurora.org>
parent 589aab57
Loading
Loading
Loading
Loading
+6 −12
Original line number Diff line number Diff line
@@ -51,10 +51,6 @@ static int drm_dp_dpcd_write_payload(struct drm_dp_mst_topology_mgr *mgr,
				     int id,
				     struct drm_dp_payload *payload);

static int drm_dp_send_dpcd_write(struct drm_dp_mst_topology_mgr *mgr,
				  struct drm_dp_mst_port *port,
				  int offset, int size, u8 *bytes);

static void drm_dp_send_link_address(struct drm_dp_mst_topology_mgr *mgr,
				     struct drm_dp_mst_branch *mstb);
static int drm_dp_send_enum_path_resources(struct drm_dp_mst_topology_mgr *mgr,
@@ -1403,7 +1399,6 @@ static bool drm_dp_validate_guid(struct drm_dp_mst_topology_mgr *mgr,
	return false;
}

#if 0
static int build_dpcd_read(struct drm_dp_sideband_msg_tx *msg, u8 port_num, u32 offset, u8 num_bytes)
{
	struct drm_dp_sideband_msg_req_body req;
@@ -1416,7 +1411,6 @@ static int build_dpcd_read(struct drm_dp_sideband_msg_tx *msg, u8 port_num, u32

	return 0;
}
#endif

static int drm_dp_send_sideband_msg(struct drm_dp_mst_topology_mgr *mgr,
				    bool up, u8 *msg, int len)
@@ -1982,8 +1976,7 @@ int drm_dp_update_payload_part2(struct drm_dp_mst_topology_mgr *mgr)
}
EXPORT_SYMBOL(drm_dp_update_payload_part2);

#if 0 /* unused as of yet */
static int drm_dp_send_dpcd_read(struct drm_dp_mst_topology_mgr *mgr,
int drm_dp_send_dpcd_read(struct drm_dp_mst_topology_mgr *mgr,
				 struct drm_dp_mst_port *port,
				 int offset, int size, u8 *bytes)
{
@@ -2037,9 +2030,9 @@ static int drm_dp_send_dpcd_read(struct drm_dp_mst_topology_mgr *mgr,
	drm_dp_put_mst_branch_device(mstb);
	return ret;
}
#endif
EXPORT_SYMBOL(drm_dp_send_dpcd_read);

static int drm_dp_send_dpcd_write(struct drm_dp_mst_topology_mgr *mgr,
int drm_dp_send_dpcd_write(struct drm_dp_mst_topology_mgr *mgr,
			   struct drm_dp_mst_port *port,
			   int offset, int size, u8 *bytes)
{
@@ -2075,6 +2068,7 @@ static int drm_dp_send_dpcd_write(struct drm_dp_mst_topology_mgr *mgr,
	drm_dp_put_mst_branch_device(mstb);
	return ret;
}
EXPORT_SYMBOL(drm_dp_send_dpcd_write);

static int drm_dp_encode_up_ack_reply(struct drm_dp_sideband_msg_tx *msg, u8 req_type)
{
+8 −0
Original line number Diff line number Diff line
@@ -634,4 +634,12 @@ int drm_dp_atomic_release_vcpi_slots(struct drm_atomic_state *state,
int drm_dp_send_power_updown_phy(struct drm_dp_mst_topology_mgr *mgr,
				 struct drm_dp_mst_port *port, bool power_up);

int drm_dp_send_dpcd_write(struct drm_dp_mst_topology_mgr *mgr,
			   struct drm_dp_mst_port *port,
			   int offset, int size, u8 *bytes);

int drm_dp_send_dpcd_read(struct drm_dp_mst_topology_mgr *mgr,
				 struct drm_dp_mst_port *port,
				 int offset, int size, u8 *bytes);

#endif