[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-arm-kernel
Subject:    Re: Problem with PXA270: Buffer is not fully transmitted ...
From:       Nicolas Pitre <nico () cam ! org>
Date:       2005-06-30 18:09:30
Message-ID: Pine.LNX.4.63.0506301405110.1667 () localhost ! localdomain
[Download RAW message or body]

On Thu, 30 Jun 2005, Jens Rehsack wrote:

> The PXA Board seems not fully transfer a larger packet as it should.
> 
> My transmit code is a little bit simplier than the original pxa
> serial driver:
> 
> static void
> kgdb_transmit_chars(struct uart_pxa_port *up)
> {
> 	unsigned long flags;
> 	char dbgbuf[GDB_BUF_SIZE+1], *p = dbgbuf;
> 
> 	memset( dbgbuf, 0, sizeof(dbgbuf) );
> 
> 	printk( "start sending ...\n" );
> 
> 	local_irq_save( flags );
> 
> 
> 	if( out_buffer.cnt == 0 )
> 	{
> 		return;
> 	}

If buffer is zero in length you leave interrupt disabled?

> Does anyone have an idea, why the transmission stops after 65 bytes?

The UART FIFO depth is 64 bytes.  That should ring a bell.


Nicolas

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic