Skip to contentSkip to conversation

drm/bridge: Clear the DP_AUX_I2C_MOT bit passed in aux command.

PATCH Superseded Hsin-Yi Wang 1 participant 1 message Feb 17, 2022

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/bridge: Clear the DP_AUX_I2C_MOT bit passed in aux command.

It's observed that if the previous transfer didn't end with a command without DP_AUX_I2C_MOT, the next trasnfer will miss the first byte. But if the command in previous transfer is requested with length 0, anx7625 can't process this command. To make the case simpler, request with commands without DP_AUX_I2C_MOT bit.

Fixes adca62ec370c ("drm/bridge: anx7625: Support reading edid through aux channel")
---
 drivers/gpu/drm/bridge/analogix/anx7625.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/analogix/anx7625.c +1 -1
index 633618bafd75d3..050616c1162128 100644
@@ -1703,7 +1703,7 @@ static ssize_t anx7625_aux_transfer(struct drm_dp_aux *aux,
 		ret = -EINVAL;
 	}
 	if (!ret)
-		ret = anx7625_aux_trans(ctx, msg->request, msg->address,
+		ret = anx7625_aux_trans(ctx, request, msg->address,
 					msg->size, msg->buffer);
 	pm_runtime_mark_last_busy(dev);
 	pm_runtime_put_autosuspend(dev);
Signature · 1 line
2.35.1.265.g69c8d7142f-goog