commit | 9581329eff9db72ab4fbb46a594fd7fdda3c51b0 | [log] [tgz] |
---|---|---|
author | Eugen Hristev <eugen.hristev@microchip.com> | Tue Feb 27 12:25:07 2018 +0200 |
committer | Mark Brown <broonie@kernel.org> | Tue Feb 27 14:00:45 2018 +0000 |
tree | aaba81e368d15814f9541364a96fa65792ba211b | |
parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 [diff] |
spi: atmel: init FIFOs before spi enable The datasheet recommends initializing FIFOs before SPI enable. If we do not do it like this, there may be a strange behavior. We noticed that DMA does not work properly with FIFOs if we do not clear them beforehand or enable them before SPIEN. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org