Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'spi-fix-v6.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi

Pull spi fix from Mark Brown:
"One fix here from Thierry, fixing crashes caused by attempting to do
cache sync operations on uncached memory on Tegra platforms"

* tag 'spi-fix-v6.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
spi: tegra210-qspi: Remove cache operations

-14
-14
drivers/spi/spi-tegra210-quad.c
··· 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. ··· 439 442 440 443 tqspi->cur_tx_pos += write_bytes; 441 444 } 442 - 443 - dma_sync_single_for_device(tqspi->dev, tqspi->tx_dma_phys, 444 - tqspi->dma_buf_size, DMA_TO_DEVICE); 445 445 } 446 446 447 447 static void 448 448 tegra_qspi_copy_qspi_rxbuf_to_client_rxbuf(struct tegra_qspi *tqspi, struct spi_transfer *t) 449 449 { 450 - dma_sync_single_for_cpu(tqspi->dev, tqspi->rx_dma_phys, 451 - tqspi->dma_buf_size, DMA_FROM_DEVICE); 452 - 453 450 if (tqspi->is_packed) { 454 451 tqspi->cur_rx_pos += tqspi->curr_dma_words * tqspi->bytes_per_word; 455 452 } else { ··· 469 478 470 479 tqspi->cur_rx_pos += read_bytes; 471 480 } 472 - 473 - dma_sync_single_for_device(tqspi->dev, tqspi->rx_dma_phys, 474 - tqspi->dma_buf_size, DMA_FROM_DEVICE); 475 481 } 476 482 477 483 static void tegra_qspi_dma_complete(void *args) ··· 689 701 return ret; 690 702 } 691 703 692 - dma_sync_single_for_device(tqspi->dev, tqspi->rx_dma_phys, 693 - tqspi->dma_buf_size, DMA_FROM_DEVICE); 694 704 ret = tegra_qspi_start_rx_dma(tqspi, t, len); 695 705 if (ret < 0) { 696 706 dev_err(tqspi->dev, "failed to start RX DMA: %d\n", ret);