Thread (15 messages) 15 messages, 3 authors, 2012-11-15
STALE4950d
Revisions (11)
  1. v1 [diff vs current]
  2. v1 [diff vs current]
  3. v1 [diff vs current]
  4. v2 [diff vs current]
  5. v2 [diff vs current]
  6. v2 [diff vs current]
  7. v2 [diff vs current]
  8. v2 [diff vs current]
  9. v2 [diff vs current]
  10. v2 current
  11. v3 [diff vs current]

[PATCH v2 2/3] serial: mxs-auart: add the DMA support for mx28

From: Lauri Hintsala <hidden>
Date: 2012-11-15 07:22:39
Also in: linux-serial

Hi,

On 11/15/2012 05:20 AM, Huang Shijie wrote:
? 2012?11?13? 17:42, Lauri Hintsala ??:
quoted
Hi Huang,

DMA support doesn't work with latest stable v3.6.5 or development
3.7-rc5 kernels. I get following error message when I open the serial
port /dev/ttyAPP0:

[ 48.730000] mxs-auart 8006a000.serial: step 1 error
[ 48.750000] mxs-auart 8006a000.serial: We can not start up the DMA.
I tested this patch set in imx28-evk board Rev C with linux-next-20121114.
it works fine.

Maybe you can try the linux-next code.
I tested linux-next-20121114 on apx4devkit (imx28 based device) and I 
got the same error message:

# stty -F /dev/ttyAPP0 crtscts; microcom /dev/ttyAPP0 -s 115200
[  133.710000] mxs-auart 8006a000.serial: step 1 error
[  133.720000] mxs-auart 8006a000.serial: We can not start up the DMA.

About the flow control:
If we do not enable the HW flow control, the data may lost. And I do not
know how to handle with the Xon/Xoff when the DMA is supported.
I do not have the answer but it is already implemented in Freescale's 
reference kernel 
(http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/serial/mxs-auart.c?h=imx_2.6.35_11.09.01). 
So I think it is possible to handle all data without HW flow control.


Best Regards,
Lauri Hintsala
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help