From: Mark Jackson <mpfj-list@newflow.co.uk>
To: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Cc: lkml <linux-kernel@vger.kernel.org>,
linux-serial@vger.kernel.org, gregkh@linuxfoundation.org
Subject: AM335x: is AUTORTS mode supported ?
Date: Wed, 03 Jul 2013 17:02:44 +0100 [thread overview]
Message-ID: <51D44B24.3050407@newflow.co.uk> (raw)
I'm struggling to determine if AUTORTS mode is currently supported in 3.10 ?
I have dug into the source code, and can see various references to the relevant bits
in the various UART registers, but I'm at a lose as to how to actually *enable* the
mode !!
In drivers/tty/omap-serial.c serial_omap_set_termios() we have:-
if (termios->c_cflag & CRTSCTS && up->port.flags & UPF_HARD_FLOW) {
/* Enable AUTORTS and AUTOCTS */
up->efr |= UART_EFR_CTS | UART_EFR_RTS;
/* Ensure MCR RTS is asserted */
up->mcr |= UART_MCR_RTS;
} else {
...
}
So it looks like I need to set the CRTSCTS and UPF_HARD_FLOW flags.
>From userspace, I've tried:-
$ stty -F /dev/ttyO2 crtscts
But I've not idea how to enable UPF_HARD_FLOW !?!
Can anyone point me in the right direction ?
Cheers
Mark J.
reply other threads:[~2013-07-03 16:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=51D44B24.3050407@newflow.co.uk \
--to=mpfj-list@newflow.co.uk \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-serial@vger.kernel.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