drm/dp: get/set phy compliance pattern
authorAnimesh Manna <animesh.manna@intel.com>
Mon, 16 Mar 2020 10:37:54 +0000 (16:07 +0530)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 8 Apr 2020 12:40:42 +0000 (14:40 +0200)
commit4342f839ae7e6117977c9e867a49645cc7625c5a
treed8308bfea3fde702531ebe5f80632693846cf973
parent8811d9eb4dfa6ce6fbbb8dabcec1e049f3e03329
drm/dp: get/set phy compliance pattern

During phy compliance auto test mode source need to read
requested test pattern from sink through DPCD. After processing
the request source need to set the pattern. So set/get method
added in drm layer as it is DP protocol.

v2: As per review feedback from Manasi on RFC version,
- added dp revision as function argument in set_phy_pattern api.
- used int for link_rate and u8 for lane_count to align with existing code.

v3: As per review feedback from Harry,
- used sizeof() instead of magic number.
- corrected kernel-doc for drm_dp_phy_test_params structure.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200316103759.12867-3-animesh.manna@intel.com
drivers/gpu/drm/drm_dp_helper.c
include/drm/drm_dp_helper.h