Skip to content

spi: dw-mid: fix simplex DMA transfers

Andy Shevchenko linux-spi 1 version In review

Get series with b4
b4 am 1414513502-595-1-git-send-email-andriy.shevchenko@linux.intel.com

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2spi: dw-mid: refactor to use helpersdrivers/spi/spi-dw-mid.c+48 -210 replies
2/2spi: dw-mid: split rx and tx callbacks when DMAdrivers/spi/spi-dw-mid.c drivers/spi/spi-dw.h+40 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] spi: dw-mid: fix simplex DMA transfers

In current shape the driver relies on both TX and RX transfers when DMA is enabled. In case of simplex transfer the driver will stuck, since call back function will never achieve the proper condition to finish the transfer.

This patchset fixes the potential issue.

Andy Shevchenko (2):
spi: dw-mid: refactor to use helpers
spi: dw-mid: split rx and tx callbacks when DMA

 drivers/spi/spi-dw-mid.c | 114 ++++++++++++++++++++++++++++++++++-------------
 drivers/spi/spi-dw.h     |   2 +-
 2 files changed, 84 insertions(+), 32 deletions(-)
Signature · 6 lines
2.1.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html