From: Okash Khawaja <okash.khawaja@gmail.com>
To: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: speakup@linux-speakup.org
Subject: Re: [patch 6/6] staging: speakup: Migrate acntsa, bns, dectlk and txprt to ttyio
Date: Fri, 24 Mar 2017 19:21:54 +0000 [thread overview]
Message-ID: <20170324192154.GA2484@sanghar> (raw)
In-Reply-To: <20170226025930.ftr43ridqfg3az5r@var.youpi.perso.aquilenet.fr>
Hi,
On Sun, Feb 26, 2017 at 03:59:30AM +0100, Samuel Thibault wrote:
> Concerning speakup_apollo.c, it seems its only use of outb is to control
> the modem RTS line. To support that, yet another step will be:
>
> - introduce spk_serial_tiocmset(unsigned int set, unsigned int clear),
> which does:
>
> int old = inb(speakup_info.port_tts + UART_MCR);
> outb((old & ~clear) | set, speakup_info.port_tts + UART_MCR);
>
> - introduce spk_ttyio_tiocmset(unsigned int set, unsigned int clear),
> which does:
>
> speakup_tty->ops->tiocmset(speakup_tty, set, clear);
>
> and make them a tiocmset method of synths.
>
> and then in speakup_apollo.c, instead of
>
> outb(UART_MCR_DTR, speakup_info.port_tts + UART_MCR);
> outb(UART_MCR_DTR | UART_MCR_RTS,
> speakup_info.port_tts + UART_MCR);
Is there a specific reason for keeping DTR set all the time? Or is it
just a defensive measure?
>
> rather use
>
> synth->tiocmset(0, UART_MCR_RTS);
> synth->tiocmset(UART_MCR_RTS, 0);
>
> Samuel
next prev parent reply other threads:[~ UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
[patch 0/6] staging: speakup: Introduce TTY-based comms Okash Khawaja
` [patch 1/6] tty_port: allow a port to be opened with a tty that has no file handle Okash Khawaja
` Samuel Thibault
` Samuel Thibault
` John Covici
` Samuel Thibault
` Okash Khawaja
` Samuel Thibault
` Okash Khawaja
` Samuel Thibault
` Okash Khawaja
` Samuel Thibault
` Okash Khawaja
[not found] ` <20170225192358.GA4499@sanghar>
` [patch 3/6] staging: speakup: refactor spk_stop_serial_interrupt Okash Khawaja
` [patch 4/6] staging: speakup: Add spk_ttyio Okash Khawaja
` [patch 5/6] staging: speakup: Make speakup_dummy use ttyio Okash Khawaja
` [patch 6/6] staging: speakup: Migrate acntsa, bns, dectlk and txprt to ttyio Okash Khawaja
` Samuel Thibault
` Samuel Thibault
` Samuel Thibault
` Samuel Thibault
` Okash Khawaja
` Samuel Thibault
` Okash Khawaja
` Okash Khawaja
` Samuel Thibault
` Okash Khawaja
` Samuel Thibault
` Samuel Thibault
` Samuel Thibault
` Okash Khawaja [this message]
` Samuel Thibault
` Okash Khawaja
` Samuel Thibault
` Samuel Thibault
` Samuel Thibault
` [patch 4/6] staging: speakup: Add spk_ttyio Samuel Thibault
` Samuel Thibault
` [patch 3/6] staging: speakup: refactor spk_stop_serial_interrupt Samuel Thibault
` Okash Khawaja
` Samuel Thibault
` [patch 2/6] staging: speakup: Add serial_out method Samuel Thibault
` Samuel Thibault
` Okash Khawaja
` Samuel Thibault
` [patch 0/6] staging: speakup: Introduce TTY-based comms Trevor Astrope
` Okash Khawaja
` Samuel Thibault
` Samuel Thibault
` Samuel Thibault
` Read this first :) " Samuel Thibault
` Okash Khawaja
` Samuel Thibault
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=20170324192154.GA2484@sanghar \
--to=okash.khawaja@gmail.com \
--cc=samuel.thibault@ens-lyon.org \
--cc=speakup@linux-speakup.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 read-only IMAP folder(s) and NNTP newsgroup(s).