diff options
author | Serge Semin <Sergey.Semin@baikalelectronics.ru> | 2020-05-22 03:07:51 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-22 15:45:53 +0300 |
commit | 43dba9f3f98c2b184a19f856f06fe22817bfd9e0 (patch) | |
tree | e4c9538f799f1021c5a2d73c47bc607b93bd1381 /drivers/spi/spi-bcm-qspi.h | |
parent | 05897c710e8e095abf80937e23068deb600f7b0c (diff) | |
download | linux-43dba9f3f98c2b184a19f856f06fe22817bfd9e0.tar.xz |
spi: dw: Enable interrupts in accordance with DMA xfer mode
It's pointless to track the Tx overrun interrupts if Rx-only SPI
transfer is issued. Similarly there is no need in handling the Rx
overrun/underrun interrupts if Tx-only SPI transfer is executed.
So lets unmask the interrupts only if corresponding SPI
transactions are implied.
Co-developed-by: Georgy Vlasov <Georgy.Vlasov@baikalelectronics.ru>
Signed-off-by: Georgy Vlasov <Georgy.Vlasov@baikalelectronics.ru>
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Cc: Ramil Zaripov <Ramil.Zaripov@baikalelectronics.ru>
Cc: Alexey Malahov <Alexey.Malahov@baikalelectronics.ru>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Paul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: devicetree@vger.kernel.org
Link: https://lore.kernel.org/r/20200522000806.7381-3-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-bcm-qspi.h')
0 files changed, 0 insertions, 0 deletions