From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Adam Bliss <abliss@google.com>
Cc: linux-kernel@vger.kernel.org,
Russell King <rmk@flint.arm.linux.org.uk>,
Marcel Holtmann <marcel@holtmann.org>
Subject: Re: tty_tiocmset() masks out TIOCM_RI and TIOCM_CD, which breaks rfcomm
Date: Wed, 21 Jan 2009 15:32:29 +0000 [thread overview]
Message-ID: <20090121153229.4a11cb8e@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <ee007d8e0901201524s3be5e8e2m7d1d4026c078a87@mail.gmail.com>
> TIOCM_CD and TIOCM_RI to the list? Like this:
CD and RI are inputs which is why they are masked.
> Traditionally, RI (Ring Indicator) and CD (Carrier Detect) were
> typically used for DCE -> DTE communication, so perhaps this is why
> they were left off initially. However, when Bluetooth is used to
The cables end up doing the conversion so the PC world always sees them
from the one end - even if they are in fact crossed over in the cable.
> It might be appropriate to include other signals as well, such as CTS
> and DSR. However, these do not seem necessary for rfcomm, since the
> rfcomm driver will interpret a DTR as a DSR and an RTS as a CTS. My
> main concern is for RI and CD, for which there does not seem to be a
> workaround.
I would have expected the driver to be remapping RI/CD just as it does
for the DTR<->DSR RTS<->CTS cable switch around.
It's certainly possible to fix it, but that would need a double check on
the existing drivers and that passing new suprise bits won't do any harm.
The real question is what should the right behaviour be - and to me that
seems to be to logically flip all the lines not just DTR/DSR RTS/CTS
next prev parent reply other threads:[~2009-01-21 15:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-20 23:24 Adam Bliss
2009-01-21 15:32 ` Alan Cox [this message]
2009-01-21 18:13 ` Adam Bliss
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=20090121153229.4a11cb8e@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=abliss@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=rmk@flint.arm.linux.org.uk \
/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
all inboxes | Powered by JetHome®