[PATCH 2/3] spi: omap2-mcspi: Set FIFO DMA trigger level to word length

2018-10-15 Thread Vignesh R
McSPI has 32 byte FIFO in Transmit-Receive mode. Current code tries to configuration FIFO watermark level for DMA trigger to be GCD of transfer length and max FIFO size which would mean trigger level may be set to 32 for transmit-receive mode if length is aligned. This does not work in case of SPI

[PATCH 2/3] spi: omap2-mcspi: Set FIFO DMA trigger level to word length

2018-10-15 Thread Vignesh R
McSPI has 32 byte FIFO in Transmit-Receive mode. Current code tries to configuration FIFO watermark level for DMA trigger to be GCD of transfer length and max FIFO size which would mean trigger level may be set to 32 for transmit-receive mode if length is aligned. This does not work in case of SPI