From 2e3f87b99d5c3c4de2d63af849f20c7b561bc7f8 Mon Sep 17 00:00:00 2001 From: Avenger-285714 Date: Thu, 30 May 2024 11:55:07 +0800 Subject: [PATCH] Revert "arm64: i3c: cdns: phytium: Add GETMXDS format 1 retransmission" This reverts commit 8df2c2846359e7fc851ff1cadffd6996e1a44c11. --- drivers/i3c/master/i3c-master-cdns.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/i3c/master/i3c-master-cdns.c b/drivers/i3c/master/i3c-master-cdns.c index 6fa0727e5ad97..2718460dfb891 100644 --- a/drivers/i3c/master/i3c-master-cdns.c +++ b/drivers/i3c/master/i3c-master-cdns.c @@ -725,19 +725,6 @@ static int cdns_i3c_master_send_ccc_cmd(struct i3c_master_controller *m, if (!wait_for_completion_timeout(&xfer->comp, msecs_to_jiffies(1000))) cdns_i3c_master_unqueue_xfer(master, xfer); - /*GETMXDS format 1 need retransmission*/ - if ((xfer->ret) && (cmd->id == I3C_CCC_GETMXDS)) { - if (cmd->dests[0].payload.len == 5) { - cmd->dests[0].payload.len = 2; - ccmd->rx_len = cmd->dests[0].payload.len; - ccmd->cmd0 &= 0xfff000fff; - ccmd->cmd0 |= CMD0_FIFO_PL_LEN(cmd->dests[0].payload.len); - cdns_i3c_master_queue_xfer(master, xfer); - if (!wait_for_completion_timeout(&xfer->comp, msecs_to_jiffies(1000))) - cdns_i3c_master_unqueue_xfer(master, xfer); - } - } - ret = xfer->ret; cmd->err = cdns_i3c_cmd_get_err(&xfer->cmds[0]); cdns_i3c_master_free_xfer(xfer);