Re: [PATCH V3] tty/serial: add support for Xilinx PS UART

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

 



----- "Alan Cox" <alan@xxxxxxxxxxxxxxxxxxx> wrote:

> > I thought I was improving but now as I look at it further, that
> seems like it 
> > was better and I should have stuck to that method.
> > 
> > Thoughts?
> 
> Go for nearest is the right behaviour. The whole tty layer works on
> that
> basis as do soem other things. It means you don't have to have a set
> of
> calls to do things like "enumerate valid data rates" instead you ask
> and
> compare.

I wasn't very clear on that, sorry about that.

I meant we were not detecting if the error was too much and finding the 
nearest baud rate that had an acceptable amount of error. 

We were just finding the best baud rate generator values for the baud and
then using them without any kind of error.

Thanks,
John

> 
> > > > +	uart_update_timeout(port, termios->c_cflag, baud);
> > > 
> > > [which would also fix this timeout!]
> > 
> > Maybe you were meaning that if the baud rate was not really set
> because of the
> > error this timeout would be wrong also, and if so that makes sense.
> 
> Correct
> 
> Alan
--
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