summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-dw-core.c
diff options
context:
space:
mode:
authorSerge Semin <Sergey.Semin@baikalelectronics.ru>2020-09-20 14:28:51 +0300
committerMark Brown <broonie@kernel.org>2020-09-29 17:22:24 +0100
commit7e31cea7d1e0f4b683dc45c21530cd3ee82559b4 (patch)
tree2fa944e4f532c762804dedd040f55cad2d61f5db /drivers/spi/spi-dw-core.c
parenta1d5aa6f7f97b15e8fd917169239088823471741 (diff)
downloadlinux-7e31cea7d1e0f4b683dc45c21530cd3ee82559b4.tar.bz2
spi: dw: Use relaxed IO-methods to access FIFOs
In accordance with [1] the relaxed methods are guaranteed to be ordered with respect to other accesses from the same CPU thread to the same peripheral. This is what we need during the data read/write from/to the controller FIFOs being executed within a single IRQ handler or a kernel task. Such optimization shall significantly speed the data reader and writer up. For instance, the relaxed IO-accessors utilization on Baikal-T1 lets the driver to support the SPI memory operations with bus frequency three-fold faster than if normal IO-accessors would be used. [1] "LINUX KERNEL MEMORY BARRIERS", Documentation/memory-barriers.txt, Section "KERNEL I/O BARRIER EFFECTS" Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru> Link: https://lore.kernel.org/r/20200920112914.26501-8-Sergey.Semin@baikalelectronics.ru Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-dw-core.c')
0 files changed, 0 insertions, 0 deletions