public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2 v2] dmaengine: rcar-dmac: use TCRB instead of TCR
@ 2017-11-16  4:31 Kuninori Morimoto
  2017-11-16  4:33 ` [PATCH 1/2 v2] dmaengine: rcar-dmac: ensure CHCR DE bit is actually 0 after clear Kuninori Morimoto
  2017-11-16  4:34 ` [PATCH 2/2 v2] dmaengine: rcar-dmac: use TCRB instead of TCR for residue Kuninori Morimoto
  0 siblings, 2 replies; 10+ messages in thread
From: Kuninori Morimoto @ 2017-11-16  4:31 UTC (permalink / raw)
  To: Geert Uytterhoeven, Laurent Pinchart, Dan Williams, Vinod Koul
  Cc: Niklas Söderlund, dmaengine, linux-kernel@vger.kernel.org,
	Hiroyuki Yokoyama


Hi Vinod
Cc Geert, Laurent

These are v2 of dmaengine fixup for Renesas SoC.
v1 patch solved "sound noise" issue, but breaked "serial input".

The reason was that DMAC buffers read data until transferable size to write side.
This buffered data will be transfered if <1> it reached to transferable size,
<2> DE bit became 0.
In current driver, DE bit will be 0 if driver called dmaengine_terminate_all().

Thus, we need to flush this buffered data before getting residue.
And we need to check this DE bit was realy 0 when we cleared it.
Because DMAC will start to transfer bufferred data if DE was cleared, and then,
DE was 1 until finished.

I tested this patch with CONFIG_SERIAL_SH_SCI_DMA, and serial works correctly.

Kuninori Morimoto (2):
  dmaengine: rcar-dmac: ensure CHCR DE bit is actually 0 after clear
  dmaengine: rcar-dmac: use TCRB instead of TCR for residue

-- 
1.9.1

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

end of thread, other threads:[~2017-11-22  1:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-16  4:31 [PATCH 0/2 v2] dmaengine: rcar-dmac: use TCRB instead of TCR Kuninori Morimoto
2017-11-16  4:33 ` [PATCH 1/2 v2] dmaengine: rcar-dmac: ensure CHCR DE bit is actually 0 after clear Kuninori Morimoto
2017-11-16  9:46   ` Geert Uytterhoeven
2017-11-17  0:10     ` Kuninori Morimoto
2017-11-17  8:41       ` Geert Uytterhoeven
2017-11-21  8:16         ` Laurent Pinchart
2017-11-22  1:44           ` Kuninori Morimoto
2017-11-16  4:34 ` [PATCH 2/2 v2] dmaengine: rcar-dmac: use TCRB instead of TCR for residue Kuninori Morimoto
2017-11-16 12:54   ` Geert Uytterhoeven
2017-11-17  0:13     ` Kuninori Morimoto

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