mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
spi: rockchip: transfer SPI slave by CPU loop
Change-Id: Ifa2b7f92ff5aacaf30c4a3fa362ddabaff1a50c7 Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
@@ -818,7 +818,8 @@ static int rockchip_spi_probe(struct platform_device *pdev)
|
||||
rs->dma_rx.ch = NULL;
|
||||
}
|
||||
|
||||
if (rs->dma_tx.ch && rs->dma_rx.ch) {
|
||||
if (rs->dma_tx.ch && rs->dma_rx.ch &&
|
||||
!spi_controller_is_slave(master)) {
|
||||
dma_get_slave_caps(rs->dma_rx.ch, &(rs->dma_caps));
|
||||
rs->dma_tx.addr = (dma_addr_t)(mem->start + ROCKCHIP_SPI_TXDR);
|
||||
rs->dma_rx.addr = (dma_addr_t)(mem->start + ROCKCHIP_SPI_RXDR);
|
||||
|
||||
Reference in New Issue
Block a user