From: dev.c0debabe@gmail.com (Stefan Schoenleitner)
To: linux-arm-kernel@lists.infradead.org
Subject: at91sam9260 on linux 2.6.31 with at91 patchset: UART looses bytes when receiving packets
Date: Sat, 31 Oct 2009 15:24:43 +0100 [thread overview]
Message-ID: <4AEC48AB.7050008@gmail.com> (raw)
In-Reply-To: <20091031141616.GA28141@n2100.arm.linux.org.uk>
Russell King - ARM Linux wrote:
> You're not touching the iflags at all, so ixon could be set:
You're absolutely right, I forgot the iflags.
I set it to 0 now and it works ! :)
> In any case, there's a far easier way to do this - cfmakeraw(). It'll
> avoid bugs such as forgetting to set the iflags correctly. This
> modifies the termios as.
Thanks I'll better use cfmakeraw() then.
For my code I was reading the linux serial programming howto which
unfortunately does not mention cfmakeraw().
This is the reason why I was doing it this way (and forgot to set the
iflags)
> If you're also setting the baud rate, you should look at cfsetispeed() and
> cfsetospeed() as well.
This is what I was using already, it works well.
So thank you for the help and the valuable information you provided, my
code works now.
cheers,
stefan
prev parent reply other threads:[~2009-10-31 14:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-30 17:25 at91sam9260 on linux 2.6.31 with at91 patchset: UART looses bytes when receiving packets Stefan Schoenleitner
2009-10-30 22:08 ` Gerard Kam
2009-10-31 11:20 ` Stefan Schoenleitner
2009-10-31 14:00 ` Stefan Schoenleitner
2009-10-31 14:16 ` Russell King - ARM Linux
2009-10-31 14:24 ` Stefan Schoenleitner [this message]
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=4AEC48AB.7050008@gmail.com \
--to=dev.c0debabe@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).