All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/dp_mst: correct the shifting in DP_REMOTE_I2C_READ
@ 2019-12-30  7:05 ` Wayne Lin
  0 siblings, 0 replies; 16+ messages in thread
From: Wayne Lin @ 2019-12-30  7:05 UTC (permalink / raw)
  To: dri-devel, amd-gfx; +Cc: jerry.zuo, Nicholas.Kazlauskas, Wayne Lin

[Why]
According to DP spec, it should shift left 4 digits for NO_STOP_BIT
in REMOTE_I2C_READ message. Not 5 digits.

[How]
Correct the shifting value of NO_STOP_BIT for DP_REMOTE_I2C_READ case in
drm_dp_encode_sideband_req().

Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
---
 drivers/gpu/drm/drm_dp_mst_topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c
index 1d1bfa49ca2b..0557e225ff67 100644
--- a/drivers/gpu/drm/drm_dp_mst_topology.c
+++ b/drivers/gpu/drm/drm_dp_mst_topology.c
@@ -393,7 +393,7 @@ drm_dp_encode_sideband_req(const struct drm_dp_sideband_msg_req_body *req,
 			memcpy(&buf[idx], req->u.i2c_read.transactions[i].bytes, req->u.i2c_read.transactions[i].num_bytes);
 			idx += req->u.i2c_read.transactions[i].num_bytes;
 
-			buf[idx] = (req->u.i2c_read.transactions[i].no_stop_bit & 0x1) << 5;
+			buf[idx] = (req->u.i2c_read.transactions[i].no_stop_bit & 0x1) << 4;
 			buf[idx] |= (req->u.i2c_read.transactions[i].i2c_transaction_delay & 0xf);
 			idx++;
 		}
-- 
2.17.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-01-08  2:34 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-30  7:05 [PATCH] drm/dp_mst: correct the shifting in DP_REMOTE_I2C_READ Wayne Lin
2019-12-30  7:05 ` Wayne Lin
2019-12-30 11:15 ` Jani Nikula
2019-12-30 11:15   ` Jani Nikula
2019-12-31  3:30   ` Lin, Wayne
2019-12-31  3:30     ` Lin, Wayne
2020-01-07 18:57     ` Ville Syrjälä
2020-01-07 18:57       ` Ville Syrjälä
2020-01-08  2:34       ` Lin, Wayne
2020-01-08  2:34         ` Lin, Wayne
2019-12-30 15:26 ` Harry Wentland
2019-12-30 15:26   ` Harry Wentland
2019-12-31  4:00   ` Lin, Wayne
2019-12-31  4:00     ` Lin, Wayne
2019-12-31 14:40     ` Harry Wentland
2019-12-31 14:40       ` Harry Wentland

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.