Re: [RFC 0/3] i2c: sh_mobile: add DMA support

2014-11-02 Thread Laurent Pinchart
Hi Wolfram, On Friday 31 October 2014 11:51:15 Wolfram Sang wrote: Here is my RFC to support DMA with the i2c-sh_mobile core. DMA works nicely with my tests so far and we save 1 interrupt per transferred byte, yay! Do we have an idea of how much power (or CPU time ?) DMA support could save ?

Re: [RFC 0/3] i2c: sh_mobile: add DMA support

2014-11-02 Thread Wolfram Sang
Here is my RFC to support DMA with the i2c-sh_mobile core. DMA works nicely with my tests so far and we save 1 interrupt per transferred byte, yay! Do we have an idea of how much power (or CPU time ?) DMA support could save ? I have some numbers from the function tracer, but I don't trust

[RFC 0/3] i2c: sh_mobile: add DMA support

2014-10-31 Thread Wolfram Sang
Here is my RFC to support DMA with the i2c-sh_mobile core. DMA works nicely with my tests so far and we save 1 interrupt per transferred byte, yay! DMA is opt-in, so if setting it up fails, we will fall back to PIO. The threshold for selecting DMA is still under test, but probably good enough