Re: [PPC/MPC5200B] strange data loss on uart reception

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Oct 31, 2010 at 06:27:00PM +0100, Albrecht Dre? wrote:
 Am I simply too dumb to use the uart correctly, or is there some issue
> in the kernel causing this effect?  I noticed that the function
> mpc52xx_uart_int_rx_chars() does not check the return value of
> tty_insert_flip_char().  If the system runs out of space (actually,
> the maximum buffer size used should be limited, in particular on
> embedded systems!), might this go undetected?  This might explain the
> bigger "chunks", as the '5200's uart has a rather big fifo (512
> bytes).

That might help, have you tried changing this and seeing if it fixes
anything?

Also, are you sure your userspace application is checking the return
value of write() to verify that it really wrote everything it thought it
did?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux