Skip to content

Commit

Permalink
Revert "arm64: i3c: cdns: phytium: Add GETMXDS format 1 retransmission"
Browse files Browse the repository at this point in the history
This reverts commit 8df2c28.
  • Loading branch information
Avenger-285714 authored May 30, 2024
1 parent d809c8a commit 2e3f87b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions drivers/i3c/master/i3c-master-cdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2e3f87b

Please sign in to comment.