* Interface for setting half-duplex transmitter mode
@ 2008-08-06 19:25 Sergey Lapin
2008-08-06 21:38 ` Grant Edwards
0 siblings, 1 reply; 2+ messages in thread
From: Sergey Lapin @ 2008-08-06 19:25 UTC (permalink / raw)
To: linux-serial
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Interface for setting half-duplex transmitter mode
2008-08-06 19:25 Interface for setting half-duplex transmitter mode Sergey Lapin
@ 2008-08-06 21:38 ` Grant Edwards
0 siblings, 0 replies; 2+ messages in thread
From: Grant Edwards @ 2008-08-06 21:38 UTC (permalink / raw)
To: linux-serial
On 2008-08-06, Sergey Lapin <slapin@ossfans.org> wrote:
> 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?
You do realize that there is currently an actyive thread
discussing this, right?
> 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?
You should read the thread where this is being discussed, but
the short answer is that no, there is no standard way to do
this.
--
Grant Edwards grante Yow! I have a VISION! It's
at a RANCID double-FISHWICH on
visi.com an ENRICHED BUN!!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-06 21:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06 19:25 Interface for setting half-duplex transmitter mode Sergey Lapin
2008-08-06 21:38 ` Grant Edwards
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox