Adding:
if(!dspi->dma_rx || !dspi->dma_tx){ ret = -EFAULT; goto err_rx_map; }
before
dmaengine_slave_config(dspi->dma_rx, &dma_rx_conf);
in the davinci_spi_bufs function caught the NULL pointer. Now to figure out why these are null...
Adding:
if(!dspi->dma_rx || !dspi->dma_tx){ ret = -EFAULT; goto err_rx_map; }
before
dmaengine_slave_config(dspi->dma_rx, &dma_rx_conf);
in the davinci_spi_bufs function caught the NULL pointer. Now to figure out why these are null...