@@ -407,9 +407,6 @@ tegra_qspi_read_rx_fifo_to_client_rxbuf(struct tegra_qspi *tqspi, struct spi_tra
407
407
static void
408
408
tegra_qspi_copy_client_txbuf_to_qspi_txbuf (struct tegra_qspi * tqspi , struct spi_transfer * t )
409
409
{
410
- dma_sync_single_for_cpu (tqspi -> dev , tqspi -> tx_dma_phys ,
411
- tqspi -> dma_buf_size , DMA_TO_DEVICE );
412
-
413
410
/*
414
411
* In packed mode, each word in FIFO may contain multiple packets
415
412
* based on bits per word. So all bytes in each FIFO word are valid.
@@ -442,17 +439,11 @@ tegra_qspi_copy_client_txbuf_to_qspi_txbuf(struct tegra_qspi *tqspi, struct spi_
442
439
443
440
tqspi -> cur_tx_pos += write_bytes ;
444
441
}
445
-
446
- dma_sync_single_for_device (tqspi -> dev , tqspi -> tx_dma_phys ,
447
- tqspi -> dma_buf_size , DMA_TO_DEVICE );
448
442
}
449
443
450
444
static void
451
445
tegra_qspi_copy_qspi_rxbuf_to_client_rxbuf (struct tegra_qspi * tqspi , struct spi_transfer * t )
452
446
{
453
- dma_sync_single_for_cpu (tqspi -> dev , tqspi -> rx_dma_phys ,
454
- tqspi -> dma_buf_size , DMA_FROM_DEVICE );
455
-
456
447
if (tqspi -> is_packed ) {
457
448
tqspi -> cur_rx_pos += tqspi -> curr_dma_words * tqspi -> bytes_per_word ;
458
449
} else {
@@ -478,9 +469,6 @@ tegra_qspi_copy_qspi_rxbuf_to_client_rxbuf(struct tegra_qspi *tqspi, struct spi_
478
469
479
470
tqspi -> cur_rx_pos += read_bytes ;
480
471
}
481
-
482
- dma_sync_single_for_device (tqspi -> dev , tqspi -> rx_dma_phys ,
483
- tqspi -> dma_buf_size , DMA_FROM_DEVICE );
484
472
}
485
473
486
474
static void tegra_qspi_dma_complete (void * args )
@@ -701,8 +689,6 @@ static int tegra_qspi_start_dma_based_transfer(struct tegra_qspi *tqspi, struct
701
689
return ret ;
702
690
}
703
691
704
- dma_sync_single_for_device (tqspi -> dev , tqspi -> rx_dma_phys ,
705
- tqspi -> dma_buf_size , DMA_FROM_DEVICE );
706
692
ret = tegra_qspi_start_rx_dma (tqspi , t , len );
707
693
if (ret < 0 ) {
708
694
dev_err (tqspi -> dev , "failed to start RX DMA: %d\n" , ret );
0 commit comments