drivers: imx: sdma: Fix status r/w position

sdma channel type can also be _MCU2SHP/_SHP2MCU but this
case was missed from sdma_status.

Fix it now.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
Daniel Baluta 2020-04-23 23:13:41 +03:00 committed by Daniel Baluta
parent 33a0990cc4
commit a27633a958
1 changed files with 2 additions and 0 deletions

View File

@ -618,11 +618,13 @@ static int sdma_status(struct dma_chan_data *channel,
status->w_pos = bd->buf_xaddr;
break;
case SDMA_CHAN_TYPE_AP2MCU:
case SDMA_CHAN_TYPE_MCU2SHP:
status->r_pos = bd->buf_addr;
status->w_pos = pdata->fifo_paddr;
/* We cannot see the target address */
break;
case SDMA_CHAN_TYPE_MCU2AP:
case SDMA_CHAN_TYPE_SHP2MCU:
status->w_pos = bd->buf_addr;
status->r_pos = pdata->fifo_paddr;
break;