public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
From: Sergey Lapin <slapin@ossfans.org>
To: linux-serial@vger.kernel.org
Subject: Interface for setting half-duplex transmitter mode
Date: Wed, 6 Aug 2008 23:25:19 +0400	[thread overview]
Message-ID: <20080806192519.GB21558@fan.ossfans.org> (raw)

Hi, all!

Is there any interface API for userspace, which I could use
to set RS-485 mode on UART (which suports it via hardware, by setting 1
bit in configuration), which means half-duplex mode with RTS line
toggling. Now I have it hard-coded for appropriate UART,
and seen patch which sets this from platform data, but
is there some API to do it dynamically?

I know I could implement this by ioctl mechanism, but
I need some non-standard ioctl number for that. Is there
some sane way to accomplish my goals? I mean one which be accepted to
mainline?

Thanks a lot,
S.


             reply	other threads:[~2008-08-06 19:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-06 19:25 Sergey Lapin [this message]
2008-08-06 21:38 ` Interface for setting half-duplex transmitter mode Grant Edwards

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=20080806192519.GB21558@fan.ossfans.org \
    --to=slapin@ossfans.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