mirror of
https://github.com/torvalds/linux.git
synced 2026-06-11 08:03:05 +02:00
rk29:add rk29_dma_config(dws->rx_dmach, 1, 1) one more argument
This commit is contained in:
parent
ec3961558c
commit
cd6b90ed7f
|
|
@ -1049,7 +1049,7 @@ static void dma_transfer(struct rk29xx_spi *dws) //int cs_change)
|
|||
burst = 4;
|
||||
}
|
||||
if (rk29_dma_config(dws->tx_dmach, burst)) {*/
|
||||
if (rk29_dma_config(dws->tx_dmach, 1)) {//there is not dma burst but bitwide, set it 1 alwayss
|
||||
if (rk29_dma_config(dws->tx_dmach, 1, 1)) {//there is not dma burst but bitwide, set it 1 alwayss
|
||||
dev_err(&dws->master->dev, "function: %s, line: %d\n", __FUNCTION__, __LINE__);
|
||||
goto err_out;
|
||||
}
|
||||
|
|
@ -1074,7 +1074,7 @@ static void dma_transfer(struct rk29xx_spi *dws) //int cs_change)
|
|||
|
||||
if (transfer->rx_buf != NULL) {
|
||||
dws->state |= RXBUSY;
|
||||
if (rk29_dma_config(dws->rx_dmach, 1)) {
|
||||
if (rk29_dma_config(dws->rx_dmach, 1, 1)) {
|
||||
dev_err(&dws->master->dev, "function: %s, line: %d\n", __FUNCTION__, __LINE__);
|
||||
goto err_out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user