[PATCH v2] drm: add dp helper to initialize remote aux channel.

2019-12-06 Thread David (Dingchen) Zhang
is helper in DP MST port initialization. This, plus David Francis' patch [1], fix the issue of MST remote aux DPCD CRCs read. [1] https://patchwork.kernel.org/patch/11217941/ Cc: Leo Li Cc: Harry Wentland Signed-off-by: David (Dingchen) Zhang --- drivers/gpu/drm/drm_dp

[PATCH 1/2] drm: add dp helper to initialize remote aux channel.

2019-12-05 Thread David (Dingchen) Zhang
is helper in DP MST port initialization. Cc: Leo Li Cc: Harry Wentland Signed-off-by: David (Dingchen) Zhang --- drivers/gpu/drm/drm_dp_helper.c | 13 + drivers/gpu/drm/drm_dp_mst_topology.c | 3 +++ include/drm/drm_dp_helper.h | 1 + 3 files changed, 17 insertions

[PATCH v3] drm: Set crc->opened to false before setting crc source to NULL.

2019-07-26 Thread David (Dingchen) Zhang
From: Dingchen Zhang to terminate the while-loop in drm_dp_aux_crc_work when drm_dp_start/stop_crc are called in the hook to set crc source. v3: set crc->opened to false without checking (Nick) v2: Move spin_lock around entire crc->opened use (Daniel) Cc: Daniel Vetter Cc: Harry Wentla

[PATCH v2] drm: Set crc->opened to false before setting crc source to NULL.

2019-07-26 Thread David (Dingchen) Zhang
From: Dingchen Zhang to terminate the while-loop in drm_dp_aux_crc_work when drm_dp_start/stop_crc are called in the hook to set crc source. v2: Move spin_lock around entire crc->opened use (Daniel) Cc: Daniel Vetter Cc: Harry Wentland Cc: Nick Kazlauskas Signed-off-by: Dingchen Zh

[PATCH] drm: remove the newline for CRC source name.

2019-06-10 Thread Dingchen Zhang
nd Cc: Sam Ravnborg Signed-off-by: Dingchen Zhang --- drivers/gpu/drm/drm_debugfs_crc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_debugfs_crc.c b/drivers/gpu/drm/drm_debugfs_crc.c index 585169f0dcc5..dac267e840af 100644 --- a/drivers/gpu/drm/drm

[PATCH] drm: remove the newline for CRC source name.

2019-06-07 Thread Dingchen Zhang
userspace may transfer a newline, and this terminating newline is replaced by a '\0' to avoid followup issues. 'n-1' is the index to replace the newline of CRC source name. v2: update patch subject, body and format. (Sam) Cc: Leo Li Cc: Harry Wentland Cc: Sam Ravnborg Sig

[PATCH] drm: actually remove the newline for CRC source name.

2019-06-05 Thread Dingchen Zhang
'n-1' is the index to replace the newline character of CRC source name. Cc: Leo Li Cc: Harry Wentland Signed-off-by: Dingchen Zhang --- drivers/gpu/drm/drm_debugfs_crc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_debugfs_crc.c b/drive

[PATCH 2/2] drm: Set crc->opened = false before setting crc source to NULL.

2019-06-05 Thread Dingchen Zhang
to terminate the while-loop in drm_dp_aux_crc_work when drm_dp_start/stop_crc are called in the hook to set crc source. Cc:Leo Li , Harry , Nick Signed-off-by: Dingchen Zhang --- drivers/gpu/drm/drm_debugfs_crc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm

[PATCH 1/2] drm: not to read outside the boundary for CRC source name.

2019-06-05 Thread Dingchen Zhang
'n-1' is the index to access the last character of CRC source name. Cc:Leo Li , Harry Wentland Signed-off-by: Dingchen Zhang --- drivers/gpu/drm/drm_debugfs_crc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_debugfs_crc.c b/drive