Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1346951
| From | Sergei Ianovich <ynvich@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v7] serial: support for 16550A serial ports on LP-8x4x |
| Date | 2016-03-01 20:30 +0100 |
| Message-ID | <r7Y9A-53m-15@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <r7QlI-8lK-19@gated-at.bofh.it> <r7Vln-34G-3@gated-at.bofh.it> <r7VEL-3d6-21@gated-at.bofh.it> <r7W7M-3DI-21@gated-at.bofh.it> <r7WAO-3OJ-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 2016-03-01 at 19:48 +0200, Andy Shevchenko wrote: > On Tue, 2016-03-01 at 20:14 +0300, Sergei Ianovich wrote: > > On Tue, 2016-03-01 at 18:46 +0200, Andy Shevchenko wrote: > > > On Tue, 2016-03-01 at 19:25 +0300, Sergei Ianovich wrote: > > > > On Tue, 2016-03-01 at 13:06 +0200, Andy Shevchenko wrote: > > > > > On Tue, 2016-03-01 at 00:26 +0300, Sergei Ianovich wrote: > > > > So, but if you support only fixed rates, why do you care about > > > BOTHER > > > at all? > > > > If BOTHER is defined, tty_termios_baud_rate() > > and tty_termios_encode_baud_rate() allow non-standard baud rates. I > > should clear it from c_cflag to indicate I don't support it. > > > > > > > > > > > > > I think you can call this unconditionally together with case > > > > > > > > > > > 115200. > > > > > > > > The calls are orthogonal. This one deals with the case when > > > > BOTHER > > > > is > > > > defined and set, and we have non-zero rate with BOTHER, but we > > > > have > > > > zero rate after BOTHER is cleared. So we set 9600 as a sane > > > > default > > > > speed. > > Maybe you just set a baud rate nearest to the one from the table in > case of BOTHER? > > In that case perhaps you have to supply +-1 to the range. That's why > I > asked about uart_get_baud_rate(). > > Maybe this flow will work for you > > if (BOTHER) > clear BOTHER > call uart_get_baud_rate() > > ? It works well for standard rates, let it be so. If there ever is a problem, we can fix it.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v6] serial: support for 16550A serial ports on LP-8x4x Sergei Ianovich <ynvich@gmail.com> - 2016-02-27 17:20 +0100
Re: [PATCH v6] serial: support for 16550A serial ports on LP-8x4x Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-02-29 11:30 +0100
Re: [PATCH v6] serial: support for 16550A serial ports on LP-8x4x Sergei Ianovich <ynvich@gmail.com> - 2016-02-29 14:10 +0100
Re: [PATCH v6] serial: support for 16550A serial ports on LP-8x4x One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-02-29 15:50 +0100
[PATCH v7] serial: support for 16550A serial ports on LP-8x4x Sergei Ianovich <ynvich@gmail.com> - 2016-02-29 22:30 +0100
Re: [PATCH v7] serial: support for 16550A serial ports on LP-8x4x Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-03-01 12:10 +0100
Re: [PATCH v7] serial: support for 16550A serial ports on LP-8x4x Sergei Ianovich <ynvich@gmail.com> - 2016-03-01 17:30 +0100
Re: [PATCH v7] serial: support for 16550A serial ports on LP-8x4x Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-03-01 17:50 +0100
Re: [PATCH v7] serial: support for 16550A serial ports on LP-8x4x Sergei Ianovich <ynvich@gmail.com> - 2016-03-01 18:20 +0100
Re: [PATCH v7] serial: support for 16550A serial ports on LP-8x4x Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-03-01 18:50 +0100
Re: [PATCH v7] serial: support for 16550A serial ports on LP-8x4x One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-03-01 19:50 +0100
Re: [PATCH v7] serial: support for 16550A serial ports on LP-8x4x Sergei Ianovich <ynvich@gmail.com> - 2016-03-01 20:30 +0100
Re: [PATCH v7] serial: support for 16550A serial ports on LP-8x4x One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-03-01 21:00 +0100
[PATCH v8] serial: support for 16550A serial ports on LP-8x4x Sergei Ianovich <ynvich@gmail.com> - 2016-03-01 21:00 +0100
[PATCH v9] serial: support for 16550A serial ports on LP-8x4x Sergei Ianovich <ynvich@gmail.com> - 2016-03-01 21:10 +0100
Re: [PATCH v9] serial: support for 16550A serial ports on LP-8x4x Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-03-01 21:30 +0100
[PATCH v10] serial: support for 16550A serial ports on LP-8x4x Sergei Ianovich <ynvich@gmail.com> - 2016-03-01 22:30 +0100
csiph-web