summaryrefslogtreecommitdiff
path: root/drivers/hwmon/adc128d818.c
diff options
context:
space:
mode:
authorAnton Bondarenko <anton.bondarenko.sama@gmail.com>2015-12-05 16:57:00 (GMT)
committerMark Brown <broonie@kernel.org>2015-12-07 19:53:35 (GMT)
commitfab44ef1adcc585440c07c90539e2b9e2cded4bf (patch)
tree4f6ae2d976239fe7267c40abb1fb20202cbc76bc /drivers/hwmon/adc128d818.c
parente47b33c0765400d38ebaf57908f00abab2488f74 (diff)
downloadlinux-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