linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] i2c: rcar: make DMA more robust
@ 2019-03-05 17:54 Wolfram Sang
  2019-03-05 17:54 ` [PATCH 1/3] i2c: rcar: sanity check for minimal DMA length Wolfram Sang
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Wolfram Sang @ 2019-03-05 17:54 UTC (permalink / raw)
  To: linux-i2c; +Cc: linux-renesas-soc, Yoshihiro Shimoda, Wolfram Sang

The Renesas BSP has a patch to wait for the data register being empty before
starting TX-DMA. This is according to the data sheet, so this small series does
the same in patch 2 & 3. However, refactored, so there is less to compute and
it is hopefully also easy to read. During that work, I noticed an implicit
assumption about a required minimal DMA length. It is now explicit and
documented :)

Tested on a Renesas Salvator XS (R-Car M3N) and now regressions found when
writing data with DMA.

I am unsure if patches 2+3 should be squashed or not, but at least for
reviewing, seperate patches is easier.

Glad to hear what you think,

   Wolfram


Wolfram Sang (3):
  i2c: rcar: sanity check for minimal DMA length
  i2c: rcar: let DMA enable routine return success status
  i2c: rcar: wait for data empty before starting DMA

 drivers/i2c/busses/i2c-rcar.c | 30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

-- 
2.11.0


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

end of thread, other threads:[~2019-03-20 17:20 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-05 17:54 [PATCH 0/3] i2c: rcar: make DMA more robust Wolfram Sang
2019-03-05 17:54 ` [PATCH 1/3] i2c: rcar: sanity check for minimal DMA length Wolfram Sang
2019-03-11  9:49   ` Geert Uytterhoeven
2019-03-11 10:08   ` Geert Uytterhoeven
2019-03-12 12:58     ` Wolfram Sang
2019-03-15 12:56   ` Simon Horman
2019-03-20 17:20   ` Wolfram Sang
2019-03-05 17:54 ` [PATCH 2/3] i2c: rcar: let DMA enable routine return success status Wolfram Sang
2019-03-11  9:50   ` Geert Uytterhoeven
2019-03-15 13:02   ` Simon Horman
2019-03-20 17:20   ` Wolfram Sang
2019-03-05 17:54 ` [PATCH 3/3] i2c: rcar: wait for data empty before starting DMA Wolfram Sang
2019-03-11  9:59   ` Geert Uytterhoeven
2019-03-12 12:50     ` Wolfram Sang
2019-03-12 13:14       ` Geert Uytterhoeven
2019-03-12 13:18         ` Wolfram Sang
2019-03-12 13:56           ` Geert Uytterhoeven
2019-03-15 13:09   ` Simon Horman
2019-03-20 17:20   ` Wolfram Sang
2019-03-11  9:59 ` [PATCH 0/3] i2c: rcar: make DMA more robust Geert Uytterhoeven
2019-03-11 10:39   ` Wolfram Sang

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