linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 RFC 0/2] introduce fallback to pio in spi core
@ 2020-06-11 12:58 Robin Gong
  2020-06-11 12:58 ` [PATCH v1 RFC 1/2] spi: introduce fallback to pio Robin Gong
  2020-06-11 12:58 ` [PATCH v1 RFC 2/2] spi: spi-imx: add fallback feature Robin Gong
  0 siblings, 2 replies; 25+ messages in thread
From: Robin Gong @ 2020-06-11 12:58 UTC (permalink / raw)
  To: broonie, shawnguo, s.hauer, festevam, robin.murphy, matthias.schiffer
  Cc: kernel, linux-imx, linux-spi, linux-arm-kernel, linux-kernel

Introudce fallback pio way at spi core level so that the tx/rx buffer
mapped by spi core for dma could be unmap and fallback pio again. Hence no
need the below patch where 'dma_sync_sg_for_devic' to sync fresh data back
into 'device' memory and sync to 'cpu' again in spi core.
https://www.spinics.net/lists/arm-kernel/msg812236.html

If you want to use this fallback feature, please set 'master->flags' with
SPI_MASTER_FALLBACK and add 'master->fallback' checking in your can_dma()
to ensure it can fallback to pio.

Robin Gong (2):
  spi: introduce fallback to pio
  spi: spi-imx: add fallback feature

 drivers/spi/spi-imx.c   | 23 +++++------------------
 drivers/spi/spi.c       | 11 +++++++++++
 include/linux/spi/spi.h |  4 ++++
 3 files changed, 20 insertions(+), 18 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2020-06-16 12:30 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11 12:58 [PATCH v1 RFC 0/2] introduce fallback to pio in spi core Robin Gong
2020-06-11 12:58 ` [PATCH v1 RFC 1/2] spi: introduce fallback to pio Robin Gong
2020-06-11 13:40   ` Mark Brown
2020-06-12  2:18     ` Robin Gong
2020-06-12 10:13       ` Mark Brown
2020-06-12 13:48         ` Robin Gong
2020-06-12 14:16           ` Mark Brown
2020-06-14 13:04             ` Robin Gong
2020-06-15  7:19               ` Vinod Koul
2020-06-15  8:59                 ` Robin Gong
2020-06-15 11:25                   ` Vinod Koul
2020-06-16  3:05                     ` Robin Gong
2020-06-15 12:35               ` Mark Brown
2020-06-15 13:35                 ` Robin Gong
2020-06-15 13:39                   ` Mark Brown
2020-06-15 14:18                     ` Robin Gong
2020-06-15 14:36                       ` Mark Brown
2020-06-15 14:53                         ` Robin Gong
2020-06-15 14:55                           ` Mark Brown
2020-06-16  2:03                             ` Robin Gong
2020-06-16  9:59                               ` Mark Brown
2020-06-16 10:13                                 ` Robin Gong
2020-06-16 10:26                                   ` Mark Brown
2020-06-16 12:29                                     ` Robin Gong
2020-06-11 12:58 ` [PATCH v1 RFC 2/2] spi: spi-imx: add fallback feature Robin Gong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).