Re: [PATCH] Fix character loss in drivers/tc/zs.c

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

 



On Tue, 23 Sep 2003, Thiemo Seufer wrote:

> Well, the code suggests so. But thinking about it again, it should
> probably read (untested):
> 
> 
> --- linux-orig/drivers/tc/zs.c	Tue Aug 12 04:11:58 2003
> +++ linux/drivers/tc/zs.c	Tue Sep 23 14:09:34 2003
> @@ -456,7 +456,7 @@ static _INLINE_ void receive_chars(struc
>  
>  		if (info->hook && info->hook->rx_char) {
>  			(*info->hook->rx_char)(ch, flag);
> -			return;
> +			continue;
>    		}
>  
>  		if (tty->flip.count >= TTY_FLIPBUF_SIZE) {

 That might make some sense performance-wise, but it still doesn't make a
big difference -- continuing with the loop will let following pending
codes from the keyboard to be fetched immediately, while returning defers
that to the next SCC interrupt.

 Actually, I'm not that keen on making revolutionary changes to
drivers/tc/zs, just fixing bugs (of course, this might be one).  The
driver should be rewritten to become a front-end to
drivers/net/wan/z85230.c (the path seems unfortunate).  Then more
interesting stuff, like DMA and synchronous operation, will become
available. 

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux