public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH/RFC v3 0/4] serial: sh-sci: Add DT DMA support
@ 2015-08-21 18:25 Geert Uytterhoeven
  2015-08-21 18:25 ` [PATCH/RFC v3 1/4] serial: sh-sci: Stop TX and RX on shutdown Geert Uytterhoeven
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2015-08-21 18:25 UTC (permalink / raw)
  To: linux-sh
  Cc: Magnus Damm, Yoshihiro Shimoda, Laurent Pinchart,
	Nobuhiro Iwamatsu, Yoshihiro Kaneko, Kazuya Mizuguchi,
	Koji Matsuoka, Wolfram Sang, Guennadi Liakhovetski, linux-serial,
	Geert Uytterhoeven

	Hi,

This patch series adds DT DMA support to the Renesas "SCI" serial driver
on R-Car Gen2 SoCs.
It depends on "[PATCH v3 00/33] serial: sh-sci: Miscellaneous
and DMA Improvements", which contains preparatory patches that are
considered stable.

Some of these patches have been sent before, cfr.
  - [PATCH/RFC v2 00/29] serial: sh-sci: Miscellaneous and DMA
    Improvements (http://www.spinics.net/lists/linux-sh/msg43567.html)
  - [PATCH/RFC 0/8] serial: sh-sci: Add DT DMA support
    (http://www.spinics.net/lists/linux-sh/msg42258.html)

Major change is the replacement of the one-byte DMA transfer on (H)SCIF
by submitting receive DMA requests from the receive interrupt handler.

This was tested on r8a7791/koelsch, using SCIF, SCIFA, SCIFB, and HSCIF.
It should work with and without CONFIG_HIGHMEM (thanks to Shimoda-san).
There are still some known issues in case of overrun errors.

For your convenience, I've also pushed this to
git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git#scif-dma-v3

While it doesn't seem to be a hard requirement, I included the fixed
version of "dmaengine: rcar-dmac: Fix residue reporting for pending
descriptors".

Note that SCI DMA support was originally written for SH-based systems,
and was never fully wired up in platform code in mainline, so the risk
for regressions is fairly small.

Thanks for your comments!

Geert Uytterhoeven (4):
  serial: sh-sci: Stop TX and RX on shutdown
  serial: sh-sci: Get rid of the workqueue to handle receive DMA
    requests
  serial: sh-sci: Submit RX DMA from RX interrupt on (H)SCIF
  serial: sh-sci: Add DT support to DMA setup

 drivers/tty/serial/sh-sci.c | 254 +++++++++++++++++++++++---------------------
 1 file changed, 133 insertions(+), 121 deletions(-)

-- 
1.9.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

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

end of thread, other threads:[~2015-08-25 13:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-21 18:25 [PATCH/RFC v3 0/4] serial: sh-sci: Add DT DMA support Geert Uytterhoeven
2015-08-21 18:25 ` [PATCH/RFC v3 1/4] serial: sh-sci: Stop TX and RX on shutdown Geert Uytterhoeven
2015-08-21 23:17   ` Laurent Pinchart
2015-08-25 13:01     ` Geert Uytterhoeven
2015-08-21 18:25 ` [PATCH/RFC v3 2/4] serial: sh-sci: Get rid of the workqueue to handle receive DMA requests Geert Uytterhoeven
2015-08-21 18:25 ` [PATCH/RFC v3 3/4] serial: sh-sci: Submit RX DMA from RX interrupt on (H)SCIF Geert Uytterhoeven
2015-08-21 18:25 ` [PATCH/RFC v3 4/4] serial: sh-sci: Add DT support to DMA setup Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox