From: alan@lxorguk.ukuu.org.uk (Alan Cox)
To: linux-arm-kernel@lists.infradead.org
Subject: tty/serial: Need clarification on Support for 4+M Baudrate
Date: Thu, 12 Jan 2012 11:49:13 +0000 [thread overview]
Message-ID: <20120112114913.21809bed@pyramind.ukuu.org.uk> (raw)
In-Reply-To: <2B1D156D95AE9B4EAD379CB9E465FE7324AF2A605A@EXDCVYMBSTM005.EQ1STM.local>
On Thu, 12 Jan 2012 10:49:38 +0100
Rajanikanth H V <rajanikanth.hv@stericsson.com> wrote:
> Alan,
>
> Thanks for your response, suggested modification helped to get 4.8M baud
> but not 4.05M as this is being approximated to 4.0M baud which happens in
> tty_termios_encode_baud_rate(...).
Only if you don't have the BOTHER flag set and only for returned data to
user space.
When you do a TCSETS2 ioctl and have BOTHER set as the rate as well as a
c_ispeed/c_ospeed the exactly value is given to the driver.
Alan
next prev parent reply other threads:[~2012-01-12 11:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-11 12:19 tty/serial: Need clarification on Support for 4+M Baudrate Rajanikanth H V
2012-01-11 12:30 ` Alan Cox
2012-01-12 9:49 ` Rajanikanth H V
2012-01-12 11:49 ` Alan Cox [this message]
2012-01-12 14:20 ` Rajanikanth H V
2012-01-12 14:39 ` Alan Cox
2012-01-13 14:36 ` Rajanikanth H V
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120112114913.21809bed@pyramind.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox