[PATCH] cpm_uart: Made non-console uart work

STALE7677d

2 messages, 2 authors, 2005-09-09 · open the first message on its own page

[PATCH] cpm_uart: Made non-console uart work

From: Murch, Christopher <hidden>
Date: 2005-09-09 19:32:24

We've recently applied the 2.6.13 patch.  We're running on an embedded
platform using 3 of the cpm uart ports on an 8xx cpu.  After applying the
2.6.13 patch the non-console uarts no longer work.  Upon investigation, we
have found that cpu2cpm_addr() is giving us invalid results for memory
addresses derived from dma_alloc_coherent().  This causes the cpm to hang.
We believe that the better approach would be to use the dma address supplied
by the call to dma_alloc_coherent() instead of trying to convert using
bus_to_virt() and virt_to_bus().  We believe this is the approach taken by
other drivers in the 2.6 kernel.  Any comments?
Thanks for your help.

-Chris
cmurch@mrv.com

Re: [PATCH] cpm_uart: Made non-console uart work

From: Pantelis Antoniou <pantelis.antoniou@gmail.com>
Date: 2005-09-09 19:58:46

On Friday 09 September 2005 22:21, Murch, Christopher wrote:
We've recently applied the 2.6.13 patch.  We're running on an embedded
platform using 3 of the cpm uart ports on an 8xx cpu.  After applying the
2.6.13 patch the non-console uarts no longer work.  Upon investigation, we
have found that cpu2cpm_addr() is giving us invalid results for memory
addresses derived from dma_alloc_coherent().  This causes the cpm to hang.
We believe that the better approach would be to use the dma address
supplied by the call to dma_alloc_coherent() instead of trying to convert
using bus_to_virt() and virt_to_bus().  We believe this is the approach
taken by other drivers in the 2.6 kernel.  Any comments?
Thanks for your help.
Yes, it would be proper. This is a temporary hack.

What is the IMAP_ADDR value?

And where is the consistent pool located at your board?
-Chris
cmurch@mrv.com
Regards

Pantelis
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help