Re: [PATCH 8/8] spi: lpspi: add dma mode support

2019-01-07 Thread Mark Brown
On Mon, Jan 07, 2019 at 07:47:49AM +, Clark Wang wrote: A couple of small nits but otherwise this looks good: > + bytes_per_word = fsl_lpspi_bytes_per_word(transfer->bits_per_word); > + if (bytes_per_word != 1 && bytes_per_word != 2 && bytes_per_word != 4) > + return false

[PATCH 8/8] spi: lpspi: add dma mode support

2019-01-06 Thread Clark Wang
Add dma mode support for LPSPI. Any frame longer than half txfifosize will be sent by dma mode. For now, there are some notes: 1. The maximum transfer speed in master mode depends on the slave device, at least 40MHz on i.MX8 series (tested by spi-nor on 8qm-lpddr4-arm2 base board); 2. The ma