All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Implement DMA support for the sh-sci.c serial driver
@ 2010-02-18 16:29 ` Guennadi Liakhovetski
  0 siblings, 0 replies; 18+ messages in thread
From: Guennadi Liakhovetski @ 2010-02-18 16:29 UTC (permalink / raw)
  To: linux-sh@vger.kernel.org; +Cc: Magnus Damm, Dan Williams, linux-serial

The two patches in this series add DMA support to the sh-sci SCI(F) serial 
driver. The worst problem is partial reception. Since we don't know in 
advance how many bytes we're going to receive, we submit a DMA buffer 
_and_ enable the Rx interrupt. When data arrives, we get an interrupt and 
the data is written into DMA buffers. In the ISR we then set a timeout, if 
within this time we get no DMA completion callback, we have a partial 
buffer. Unfortunately, dmaengine API currently doesn't support retrieving 
partially received DMA buffers, therefore we have to hijack the 
.device_terminate_all() call to collect the data. A better approach would 
be to add a stop-transfer / collect-partial call to the API.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

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

end of thread, other threads:[~2010-03-02  3:13 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-18 16:29 [PATCH 0/2] Implement DMA support for the sh-sci.c serial driver Guennadi Liakhovetski
2010-02-18 16:29 ` Guennadi Liakhovetski
2010-02-18 16:30 ` [PATCH 1/2] sh: extend .device_terminate_all() to record partial Guennadi Liakhovetski
2010-02-18 16:30   ` [PATCH 1/2] sh: extend .device_terminate_all() to record partial transfer Guennadi Liakhovetski
2010-02-18 18:08   ` Paul Mundt
2010-02-18 18:08     ` Paul Mundt
2010-02-18 16:30 ` [PATCH 2/2] Add DMA support for the sh-sci.c serial driver Guennadi Liakhovetski
2010-02-18 16:30   ` Guennadi Liakhovetski
2010-02-19  9:47   ` Govindraj
2010-02-19  9:59     ` Govindraj
2010-02-19  9:56     ` Guennadi Liakhovetski
2010-02-19  9:56       ` Guennadi Liakhovetski
2010-02-19 10:12       ` Govindraj
2010-02-19 10:24         ` Govindraj
2010-02-18 19:39 ` [PATCH/not-for-mainline] sh7722: enable DMA on all SCIF ports Guennadi Liakhovetski
2010-02-18 19:39   ` Guennadi Liakhovetski
2010-03-02  3:13 ` [PATCH 0/2] Implement DMA support for the sh-sci.c serial driver Paul Mundt
2010-03-02  3:13   ` Paul Mundt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.