diff options
author | Anton Bondarenko <anton.bondarenko.sama@gmail.com> | 2015-12-05 16:57:00 (GMT) |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-07 19:53:35 (GMT) |
commit | fab44ef1adcc585440c07c90539e2b9e2cded4bf (patch) | |
tree | 4f6ae2d976239fe7267c40abb1fb20202cbc76bc /drivers/hwmon/adc128d818.c | |
parent | e47b33c0765400d38ebaf57908f00abab2488f74 (diff) | |
download | linux-fab44ef1adcc585440c07c90539e2b9e2cded4bf.tar.xz |
spi: imx: reorder HW operations enable order to avoid possible RX data loss
The overflow may happen due to rescheduling for another task and/or interrupt
if we enable SPI HW before starting RX DMA. So RX DMA enabled first to make
sure data would be read out from FIFO ASAP. TX DMA enabled next to start
filling TX FIFO with new data. And finaly SPI HW enabled to start actual
data transfer.
The risk rise in case of heavy system load and high SPI clock.
Signed-off-by: Anton Bondarenko <anton.bondarenko.sama@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/hwmon/adc128d818.c')
0 files changed, 0 insertions, 0 deletions