linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] DMA: AT91: Fix get residue function in at_hdmac.c
@ 2012-12-07  9:10 Elen Song
  2013-03-13  4:00 ` corpelen.song
  0 siblings, 1 reply; 2+ messages in thread
From: Elen Song @ 2012-12-07  9:10 UTC (permalink / raw)
  To: linux-arm-kernel

The residue actually means the bytes remain in transfer identified by current cookie.
The get residue api did not return the correct values in at_hdmac.c.
This patch serial focus on fix the issue.

This patch serials is based on DMA: AT91: Get residual bytes in dma buffer v2.
It is split into 3 aimed patch, the first one is to get transmit buswidth,
the second one is to get resiude in cookie, it use the buswidth to get residual bytes,
the third part is to handle the status that there are still some bytes remain in dma fifo.

Compare to v2, this patch serials improve:
1) consider buswidth to get correct residue.
2) handle dma fifo empty status.


Elen Song (3):
  DMA: AT91: Add value about transmit buswidth
  DMA: AT91: Get residual bytes in dma buffer
  DMA: AT91: Check fifo empty

 drivers/dma/at_hdmac.c      |  151 ++++++++++++++++++++++++++++++++++++++-----
 drivers/dma/at_hdmac_regs.h |    5 ++
 2 files changed, 139 insertions(+), 17 deletions(-)

-- 
1.7.9.5

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

* [PATCH 0/3] DMA: AT91: Fix get residue function in at_hdmac.c
  2012-12-07  9:10 [PATCH 0/3] DMA: AT91: Fix get residue function in at_hdmac.c Elen Song
@ 2013-03-13  4:00 ` corpelen.song
  0 siblings, 0 replies; 2+ messages in thread
From: corpelen.song @ 2013-03-13  4:00 UTC (permalink / raw)
  To: linux-arm-kernel

On 12/7/2012 5:10 PM, Elen Song wrote:
> The residue actually means the bytes remain in transfer identified by current cookie.
> The get residue api did not return the correct values in at_hdmac.c.
> This patch serial focus on fix the issue.
>
> This patch serials is based on DMA: AT91: Get residual bytes in dma buffer v2.
> It is split into 3 aimed patch, the first one is to get transmit buswidth,
> the second one is to get resiude in cookie, it use the buswidth to get residual bytes,
> the third part is to handle the status that there are still some bytes remain in dma fifo.
>
> Compare to v2, this patch serials improve:
> 1) consider buswidth to get correct residue.
> 2) handle dma fifo empty status.
>
>
> Elen Song (3):
>    DMA: AT91: Add value about transmit buswidth
>    DMA: AT91: Get residual bytes in dma buffer
>    DMA: AT91: Check fifo empty
>
>   drivers/dma/at_hdmac.c      |  151 ++++++++++++++++++++++++++++++++++++++-----
>   drivers/dma/at_hdmac_regs.h |    5 ++
>   2 files changed, 139 insertions(+), 17 deletions(-)
>
Hi All:

Any new comments about this patch serial?
I verified this patch serial, it can smooth apply on 3.9-rc2 and the 
function is all right.

Best regards
Elen Song

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

end of thread, other threads:[~2013-03-13  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-07  9:10 [PATCH 0/3] DMA: AT91: Fix get residue function in at_hdmac.c Elen Song
2013-03-13  4:00 ` corpelen.song

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