linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Chunk splitting of spi transfers
@ 2018-03-10 15:50 Meghana Madhyastha
  2018-03-10 15:51 ` [PATCH v2 1/2] spi: Split spi message into chunks of <65535 in the spi subsystem Meghana Madhyastha
  2018-03-10 15:52 ` [PATCH v2 2/2] drm/tinydrm: Remove chunk splitting in tinydrm_spi_transfer Meghana Madhyastha
  0 siblings, 2 replies; 11+ messages in thread
From: Meghana Madhyastha @ 2018-03-10 15:50 UTC (permalink / raw)
  To: Mark Brown, Daniel Vetter, linux-spi, Noralf Trønnes,
	Sean Paul, dri-devel, kernel

-Call spi_split_transfers_maxsize in __spi_pump_messages
to split large chunks for spi dma transfers.
-Remove chunk splitting in the tinydrm spi helper (as now the core is
handling the chunk splitting).

Changes in v2:
-Change the order of the two patches in the patchset.
-Undo the spurious blank line deletions
-Remove bcm2835_spi_transfer_one_message and add spi_split_transfers_maxsize
 in __spi_pump_messages. This solves the DMA time out error.

Meghana Madhyastha (2):
  spi: Split spi message into chunks of <65535 in the spi subsystem
  drm/tinydrm: Remove chunk splitting in tinydrm_spi_transfer

 drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 48 ++++----------------------
 drivers/gpu/drm/tinydrm/mipi-dbi.c             | 10 ++----
 drivers/spi/spi-bcm2835.c                      | 15 +-------
 drivers/spi/spi.c                              |  8 +++++
 4 files changed, 17 insertions(+), 64 deletions(-)

-- 
2.11.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH v2 0/2] Chunk splitting of spi transfers
@ 2018-02-24 18:15 Meghana Madhyastha
  2018-02-25 13:19 ` Lukas Wunner
  0 siblings, 1 reply; 11+ messages in thread
From: Meghana Madhyastha @ 2018-02-24 18:15 UTC (permalink / raw)
  To: Daniel Vetter, dri-devel, linux-spi, Noralf Trønnes,
	Sean Paul, kernel

I've added bcm2835_spi_transfer_one_message in spi-bcm2835. This calls
spi_split_transfers_maxsize to split large chunks for spi dma transfers. 
I then removed chunk splitting in the tinydrm spi helper (as now the core is
handling the chunk splitting). However, although the SPI HW should be able to
accomodate upto 65535 bytes for dma transfers, the splitting of chunks to 65535
bytes results in a dma transfer time out error. However, when the chunks are
split to <64  bytes it seems to work fine.

Changes in v2:
-Patch 2 did not exist in v1.

Meghana Madhyastha (2):
  drm/tinydrm: Remove chunk splitting in tinydrm_spi_transfer
  spi/spi-bcm2835: Add bcm2835_spi_transfer_one_message in spi-bcm2835.c

 drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 48 ++++----------------------
 drivers/gpu/drm/tinydrm/mipi-dbi.c             | 10 ++----
 drivers/spi/spi-bcm2835.c                      | 29 ++++++++--------
 drivers/spi/spi.c                              |  5 ++-
 include/linux/spi/spi.h                        |  2 ++
 5 files changed, 27 insertions(+), 67 deletions(-)

-- 
2.11.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2018-03-11 13:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-10 15:50 [PATCH v2 0/2] Chunk splitting of spi transfers Meghana Madhyastha
2018-03-10 15:51 ` [PATCH v2 1/2] spi: Split spi message into chunks of <65535 in the spi subsystem Meghana Madhyastha
2018-03-10 19:12   ` Geert Uytterhoeven
2018-03-11 13:33   ` Noralf Trønnes
2018-03-10 15:52 ` [PATCH v2 2/2] drm/tinydrm: Remove chunk splitting in tinydrm_spi_transfer Meghana Madhyastha
2018-03-11 13:35   ` Noralf Trønnes
  -- strict thread matches above, loose matches on Subject: below --
2018-02-24 18:15 [PATCH v2 0/2] Chunk splitting of spi transfers Meghana Madhyastha
2018-02-25 13:19 ` Lukas Wunner
2018-02-27 17:40   ` Noralf Trønnes
2018-03-02 11:11   ` Meghana Madhyastha
2018-03-04 17:38     ` Noralf Trønnes

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).