From 615c8070f0395162f7f329d46c897e2521b65265 Mon Sep 17 00:00:00 2001 From: Sandor Yu Date: Mon, 4 Mar 2019 15:53:28 +0800 Subject: [PATCH] MLK-21032-1: DP: return correct read size for DPCD read function DPCD read function should return actual read size. msg->size is the requested read size so replaced it with read_resp.size. Signed-off-by: Sandor Yu --- drivers/gpu/drm/imx/hdp/imx-dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/hdp/imx-dp.c b/drivers/gpu/drm/imx/hdp/imx-dp.c index d97a387ef4ff..c9902089e307 100644 --- a/drivers/gpu/drm/imx/hdp/imx-dp.c +++ b/drivers/gpu/drm/imx/hdp/imx-dp.c @@ -314,7 +314,7 @@ static ssize_t dp_aux_transfer(struct drm_dp_aux *aux, #ifdef DEBUG print_bytes(read_resp.addr, read_resp.buff, read_resp.size); #endif - return msg->size; + return read_resp.size; } return 0; } -- 2.17.1