Staging status of speakup

2019-03-15 Thread Okash Khawaja
Hi, We have made progress on the items in TODO file of speakup driver in staging directory and wanted to get some clarity on the remaining items. Below is a summary of status of each item along with the quotes from TODO file. 1. "The first issue has to do with the way speakup communicates with se

Re: Staging status of speakup

2019-03-16 Thread Okash Khawaja
Hi, On Fri, 15 Mar 2019 18:19:39 -0700 Chris Brannon wrote: > Okash Khawaja writes: > > > Finally there is an issue where text in output buffer sometimes gets > > garbled on SMP systems, but we can continue working on it after the > > driver is moved out of staging, i

Re: Staging status of speakup

2019-03-16 Thread Okash Khawaja
On Fri, 15 Mar 2019 20:18:31 -0700 Greg Kroah-Hartman wrote: > On Fri, Mar 15, 2019 at 01:01:27PM +0000, Okash Khawaja wrote: > > Hi, > > > > We have made progress on the items in TODO file of speakup driver in > > staging directory and wanted to get some clarity

Re: Staging status of speakup

2019-03-20 Thread Okash Khawaja
On Tue, 19 Mar 2019 16:31:21 + Alan Cox wrote: > On Sat, 16 Mar 2019 10:35:43 +0100 > Samuel Thibault wrote: > > > Chris Brannon, le ven. 15 mars 2019 18:19:39 -0700, a ecrit: > > > Okash Khawaja writes: > > > > Finally there is an issue w

[PATCH 2/2] staging: speakup: refactor to use existing code in vt

2019-04-04 Thread Okash Khawaja
t EBUSY forever. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Tested-by: Gregory Nowak --- drivers/staging/speakup/main.c | 1 + drivers/staging/speakup/selection.c | 212 +++- drivers/staging/speakup/speakup.h | 1 + 3 files changed, 88 insertions(+)

[PATCH 0/2] staging: speakup: factor out selection code

2019-04-04 Thread Okash Khawaja
Hi, Speakup's selection functionality parallels that of drivers/tty/vt/selection.c. This patch set replaces speakup's implementation with calls to vt's selection code. This is one of the remaining items in our TODO file and it's needed for moving speakup out of staging. Please note that in speaku

[PATCH 1/2] vt: selection: allow functions to be called from inside kernel

2019-04-04 Thread Okash Khawaja
ereby doing away with parallel implementation. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Tested-by: Gregory Nowak --- drivers/tty/vt/selection.c | 37 - include/linux/selection.h | 3 +-- 2 files changed, 25 insertions(+), 15 deletions(-)

Re: [HELP REQUESTED from the community] Was: Staging status of speakup

2019-08-21 Thread Okash Khawaja
On Thu, Jul 25, 2019 at 3:49 AM John Covici wrote: > > I think the program is genmap, I have it in my init sequence, but I > am not sure it does anything at this point. > > On Thu, 25 Jul 2019 00:04:07 -0400, > Chris Brannon wrote: > > > > Gregory Nowak writes: > > > > > keymap > > > I believe t

Re: [HELP REQUESTED from the community] Was: Staging status of speakup

2019-09-08 Thread Okash Khawaja
step will be to convert the format to match Documentation/ABI/ requirements. Thanks, Okash On Wed, Aug 21, 2019 at 11:23 PM Gregory Nowak wrote: > > On Wed, Aug 21, 2019 at 09:39:25AM -0700, Okash Khawaja wrote: > > Hi Greg N, > > > > Would like to send this as a patch a

Re: [HELP REQUESTED from the community] Was: Staging status of speakup

2019-09-14 Thread Okash Khawaja
On Mon, Sep 9, 2019 at 3:55 AM Gregory Nowak wrote: > > On Sun, Sep 08, 2019 at 10:43:02AM +0100, Okash Khawaja wrote: > > Sorry, I have only now got round to working on this. It's not complete > > yet but I have assimilated the feedback and converted subjective >

Re: [HELP REQUESTED from the community] Was: Staging status of speakup

2019-09-15 Thread Okash Khawaja
On Sun, Sep 15, 2019 at 2:43 PM Greg Kroah-Hartman wrote: > > On Sat, Sep 14, 2019 at 10:08:35PM +0100, Okash Khawaja wrote: > > On Mon, Sep 9, 2019 at 3:55 AM Gregory Nowak wrote: > > > > > > On Sun, Sep 08, 2019 at 10:43:02AM +0100, Okash Khawaja wrote: > >

Re: Re: [HELP REQUESTED from the community] Was: Staging status of speakup

2019-09-17 Thread Okash Khawaja
Ah it looks like the spaces after Description: need to be converted into tabs. Thanks, Okash On Tue, Sep 17, 2019 at 10:35 PM Okash Khawaja wrote: > > Hi Greg, > > You're right, I got none of those emails. Thanks. Is it all taken care of? > > Best regards, > Okash >

Re: [HELP REQUESTED from the community] Was: Staging status of speakup

2019-09-20 Thread Okash Khawaja
On Fri, Sep 20, 2019 at 8:46 AM Greg Kroah-Hartman wrote: > > On Wed, Sep 18, 2019 at 01:30:33PM -0700, Gregory Nowak wrote: > > > Extra line between each attribute (before the "What:" line) would be > > > nice. > > > > In a previous post above, you wrote: > > On Mon, Sep 16, 2019 at 04:11:00PM +0

[PATCH] staging: speakup: document sysfs attributes

2019-09-21 Thread Okash Khawaja
TODO. Authored-by: Gregory Nowak Submitted-by: Okash Khawaja --- drivers/staging/speakup/sysfs-driver-speakup | 369 +++ 1 file changed, 369 insertions(+) create mode 100644 drivers/staging/speakup/sysfs-driver-speakup diff --git a/drivers/staging/speakup/sysfs-driver-speakup b/dr

[PATCH v2] staging: speakup: document sysfs attributes

2019-10-01 Thread Okash Khawaja
TODO. Authored-by: Gregory Nowak Submitted-by: Okash Khawaja Signed-off-by: Okash Khawaja --- drivers/staging/speakup/sysfs-driver-speakup | 369 +++ 1 file changed, 369 insertions(+) create mode 100644 drivers/staging/speakup/sysfs-driver-speakup diff --git a/drivers/staging/speakup/

[PATCH v2 0/2] staging: speakup: factor out selection code

2019-04-17 Thread Okash Khawaja
Hi, The v2 renames set_selection() and do_set_selection() to following more explicit names: set_selection_user() /* includes copying data from user space */ set_selection_kernel() /* no copying from user space */ The patches also update references to set_selection() to be set_selection_user().

[PATCH v2 2/2] staging: speakup: refactor to use existing code in vt

2019-04-17 Thread Okash Khawaja
x27;t get EBUSY forever. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Tested-by: Gregory Nowak --- drivers/staging/speakup/main.c | 1 + drivers/staging/speakup/selection.c | 212 +++- drivers/staging/speakup/speakup.h | 1 + 3 files changed

[PATCH v2 1/2] vt: selection: allow functions to be called from inside kernel

2019-04-17 Thread Okash Khawaja
() and fixing for name change. It also exports set_selection_kernel() and paste_selection(). These changes are used the following patch where speakup's selection functionality calls into the above functions, thereby doing away with parallel implementation. Signed-off-by: Okash Khawaja Review

Re: Staging status of speakup

2019-07-06 Thread Okash Khawaja
On Fri, 15 Mar 2019 20:18:31 -0700 Greg Kroah-Hartman wrote: > On Fri, Mar 15, 2019 at 01:01:27PM +0000, Okash Khawaja wrote: > > Hi, > > > > We have made progress on the items in TODO file of speakup driver in > > staging directory and wanted to get some clarity

Re: Staging status of speakup

2019-07-12 Thread Okash Khawaja
On Fri, Jul 12, 2019 at 9:38 AM Greg Kroah-Hartman wrote: > > On Sun, Jul 07, 2019 at 08:57:10AM +0200, Greg Kroah-Hartman wrote: > > On Sat, Jul 06, 2019 at 08:08:57PM +0100, Okash Khawaja wrote: > > > On Fri, 15 Mar 2019 20:18:31 -0700 > > > Greg Kroah-Hartman wr

Re: [patch 2/3] speakup: convert screen reading to 16bit characters

2017-03-04 Thread Okash Khawaja
return -1; > - ch = goto_buf[--num]; > + wch = goto_buf[--num]; > goto_buf[num] = '\0'; > - spkup_write(&ch, 1); > + spkup_write(&wch, 1); > return 1; > } > if (ch < '+' || ch > 'y') > goto oops; > + wch = ch; > goto_buf[num++] = ch; > goto_buf[num] = '\0'; > - spkup_write(&ch, 1); > + spkup_write(&wch, 1); > maxlen = (*goto_buf >= '0') ? 3 : 4; > if ((ch == '+' || ch == '-') && num == 1) > return 1; > @@ -2254,9 +2269,8 @@ static int vt_notifier_call(struct notif > case VT_WRITE: > if (param->c == '\b') > speakup_bs(vc); > - else if (param->c < 0x100) { > - char d = param->c; > - > + else { > + u16 d = param->c; > speakup_con_write(vc, &d, 1); > } > break; > Index: linux-4.10/drivers/staging/speakup/spk_types.h > === > --- linux-4.10.orig/drivers/staging/speakup/spk_types.h > +++ linux-4.10/drivers/staging/speakup/spk_types.h > @@ -55,7 +55,7 @@ struct spk_highlight_color_track { > /* Count of each background color */ > unsigned int bgcount[8]; > /* Buffer for characters drawn with each background color */ > - char highbuf[8][COLOR_BUFFER_SIZE]; > + u16 highbuf[8][COLOR_BUFFER_SIZE]; > /* Current index into highbuf */ > unsigned int highsize[8]; > /* Reading Position for each color */ > Index: linux-4.10/drivers/staging/speakup/speakup.h > === > --- linux-4.10.orig/drivers/staging/speakup/speakup.h > +++ linux-4.10/drivers/staging/speakup/speakup.h > @@ -38,6 +38,7 @@ > #define B_SYM 0x0800 > #define B_CAPSYM (B_CAP|B_SYM) > > +/* FIXME: u16 */ > #define IS_WDLM(x) (spk_chartab[((u_char)x)]&B_WDLM) > #define IS_CHAR(x, type) (spk_chartab[((u_char)x)]&type) > #define IS_TYPE(x, type) ((spk_chartab[((u_char)x)]&type) == type) Reviewed-by: Okash Khawaja ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [patch 2/3] speakup: convert screen reading to 16bit characters

2017-03-04 Thread Okash Khawaja
return -1; > - ch = goto_buf[--num]; > + wch = goto_buf[--num]; > goto_buf[num] = '\0'; > - spkup_write(&ch, 1); > + spkup_write(&wch, 1); > return 1; >

[patch 7/7] staging: speakup: migrate acntsa, bns, dummy and txprt to ttyio

2017-03-13 Thread okash . khawaja
This changes the above five synths to TTY-based comms. They were chosen as a first pass because their serial comms are straightforward, i.e. they don't use serial input and don't do internal port knocking. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-4.10

[patch 5/7] staging: speakup: move those functions which do outgoing serial comms, into serialio.c

2017-03-13 Thread okash . khawaja
not been changed. Along the way, this patch also fixes a couple of spots which were calling spk_synth_immediate directly, so that the calls now happen via the spk_syth struct. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-4.10.1/drivers/staging/speakup/serialio.c

[patch 3/7] staging: serial: add spk_io_ops struct to spk_synth

2017-03-13 Thread okash . khawaja
, synth_out but more will be added in future when incorporating inputs in the tty-based comms. Also at the moment, synth_out method has one implementation which uses serial i/o. Later in this patch set, an alternate tty-based implementation will be added. Signed-off-by: Okash Khawaja Reviewed-by: Samuel

[patch 6/7] staging: speakup: add tty-based comms functions

2017-03-13 Thread okash . khawaja
witch to accessing serial ports through the TTY subsystem, whenever appropriate. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-4.10.1/drivers/staging/speakup/Makefile === --- linux-4.10.1.orig/drivers/st

[patch 4/7] staging: speakup: move spk_stop_serial_interrupt into synth-specific release function

2017-03-13 Thread okash . khawaja
e decision of calling spk_stop_serial_interrupt() to that synth. TTY-based synths which follow in this patchset simply wouldn't call it. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-4.10.1/drivers/staging/spe

[patch 1/7] tty_port: allow a port to be opened with a tty that has no file handle

2017-03-13 Thread okash . khawaja
r enumerate it while providing the existing tty API to avoid regressions (and to debug)." Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-4.10.1/drivers/tty/tty_io.c === --- linux-4.10.1.orig/drivers/tt

[patch 2/7] staging: speakup: spk_serial_out and spk_wait_for_xmitr to take synth arg

2017-03-13 Thread okash . khawaja
. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-4.10.1/drivers/staging/speakup/serialio.c === --- linux-4.10.1.orig/drivers/staging/speakup/serialio.c +++ linux-4.10.1/drivers/staging/speakup/serialio.c

[patch 0/7] staging: speakup: introduce tty-based comms

2017-03-13 Thread okash . khawaja
Hi, This patchset introduces a TTY-based way for the synths to communicate with devices as an alternate for direct serial comms used by the synths at the moment. It then migrates some of the synths to the TTY-based comms. Synths migrated in this patchset are dummy, acntsa, bns and txprt. As such,

Re: [patch 1/7] tty_port: allow a port to be opened with a tty that has no file handle

2017-03-13 Thread Okash Khawaja
> to a kernel device of some kind). That needs resolving along with how you > > "up" or "down" your new bluetooth device, or enumerate it while providing > > the existing tty API to avoid regressions (and to debug)." > > > > Signed-off-by: Okash Khawaja

[patch 4/4] staging: speakup: move those functions which do outgoing serial comms, into serialio.c

2017-03-14 Thread Okash Khawaja
not been changed. Along the way, this patch also fixes a couple of spots which were calling spk_synth_immediate directly, so that the calls now happen via the spk_syth struct. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-4.11-rc2/drivers/staging/speakup/serialio.c

[patch 0/4] staging: speakup: refactor to make raw serial i/o swappable

2017-03-14 Thread Okash Khawaja
Hi, The following patches group together most of raw serial comms with external synth and makes rest of the code agnostic to it, so that raw serial comms can be easily replaced by an alternate way to communicate with external synths. Plan is to follow these patches with alternate implementation of

[patch 3/4] staging: speakup: move spk_stop_serial_interrupt into synth-specific release function

2017-03-14 Thread Okash Khawaja
s the decision of calling spk_stop_serial_interrupt() to that synth. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-4.11-rc2/drivers/staging/speakup/serialio.c === --- linux-4.11-rc2.orig/drivers/staging/sp

[patch 1/4] staging: speakup: spk_serial_out and spk_wait_for_xmitr to take synth arg

2017-03-14 Thread Okash Khawaja
. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-4.11-rc2/drivers/staging/speakup/serialio.c === --- linux-4.11-rc2.orig/drivers/staging/speakup/serialio.c +++ linux-4.11-rc2/drivers/staging/speakup/serialio.c

[patch 2/4] staging: serial: add spk_io_ops struct to spk_synth

2017-03-14 Thread Okash Khawaja
synths which require input functionality. Also at the moment, synth_out method has one implementation which uses serial i/o. Plan is to add an alternative. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-4.11-rc2/drivers/staging/speakup/serialio.c

Re: [patch 4/4] staging: speakup: move those functions which do outgoing serial comms, into serialio.c

2017-03-15 Thread Okash Khawaja
On Thu, Mar 16, 2017 at 11:14:09AM +0900, Greg Kroah-Hartman wrote: > On Tue, Mar 14, 2017 at 01:41:55PM +0000, Okash Khawaja wrote: > > This moves spk_synth_immediate and spk_serial_synth_probe functions into > > serialio.c. These functions do outgoing serial comms. The move is a s

[patch 4/4] staging: speakup: move those functions which do outgoing serial comms, into serialio.c

2017-03-16 Thread Okash Khawaja
not been changed. Along the way, this patch also fixes a couple of spots which were calling spk_synth_immediate directly, so that the calls now happen via the spk_syth struct. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/staging/speakup/serialio.c

Re: [PATCH] staging: speakup: fix warning for static declaration

2017-03-27 Thread Okash Khawaja
Hi Gustavo, On Mon, Mar 27, 2017 at 01:37:29AM -0500, Gustavo A. R. Silva wrote: > Fix the following sparse warning: > symbol 'spk_serial_out' was not declared. Should it be static? > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/staging/speakup/serialio.c | 2 +- > 1 file changed, 1 ins

Re: [PATCH] staging: speakup: fix warning for static declaration

2017-03-27 Thread Okash Khawaja
On Mon, Mar 27, 2017 at 09:58:53AM +0200, Samuel Thibault wrote: > Okash Khawaja, on lun. 27 mars 2017 08:51:02 +0100, wrote: > > Thanks for this :) Could you also move the function higher in the same > > file - above line 139 where all static functions are defined? > > I&#

Re: [patch 0/7] staging: speakup: introduce tty-based comms

2017-04-09 Thread Okash Khawaja
Hi, Any updates on this? We can start working in tty_port_register_serdev_device() if that's okay? Thanks, Okash On Wed, Mar 22, 2017 at 01:05:24AM +0100, Samuel Thibault wrote: > Hello, > > So Rob, how do you see this going? Shall we introduce a serdev_device > *tty_port_register_serdev_devic

[patch 1/1] staging: speakup: add send_xchar and tiocmset methods

2017-04-22 Thread Okash Khawaja
these methods. Then migrating the synths to TTY will include repointing these methods to their TTY implementations Rest of the changes simply make use of serial implementation of these two functions. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/staging

[patch 0/1] staging: speakup: refactor to allow smoother migration to TTY-based comms with external synths

2017-04-22 Thread Okash Khawaja
This is part of move away from raw serial i/o to TTY-based one. Details are in the patch header. Thanks, Okash ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[patch 3/6] staging: speakup: add tty-based comms functions

2017-04-29 Thread Okash Khawaja
witch to accessing serial ports through the TTY subsystem, whenever appropriate. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/staging/speakup/Makefile === --- linux-staging.orig/drivers/st

[patch 4/6] staging: speakup: migrate acntsa, bns, dummy and txprt to ttyio

2017-04-29 Thread Okash Khawaja
This changes the above five synths to TTY-based comms. They were chosen as a first pass because their serial comms are straightforward, i.e. they don't use serial input and don't do internal port knocking. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-stagi

[patch 6/6] staging: speakup: migrate apollo, ltlk, audptr, decext, dectlk and spkout

2017-04-29 Thread Okash Khawaja
This patch simply uses the changes introduced in previous patches and migrates apollo, ltlk, audptr, decext, spkout and dectlk. Migrations are straightforward function pointer updates. Signed-off by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/staging/speakup

[patch 2/6] tty: export tty_open_by_driver

2017-04-29 Thread Okash Khawaja
This applies on top of the changes already in staging-next branch which allow kernel access to TTY dev. Signe-doff-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/tty/tty_io.c === --- linux-staging.orig

[patch 1/6] staging: speakup: make input functionality swappable

2017-04-29 Thread Okash Khawaja
from ISR, so there is a possibility for last_char to be stale. Therefore it is marked as volatile. It also pulls a repeated get_index implementation into synth.c, to be used as a utility function. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/staging

[patch 0/6] staging: speakup: migrate synths to use TTY-based comms

2017-04-29 Thread Okash Khawaja
___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[patch 5/6] staging: speakup: add send_xchar, tiocmset and input functionality for tty

2017-04-29 Thread Okash Khawaja
_buf2. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/staging/speakup/spk_ttyio.c === --- linux-staging.orig/drivers/staging/speakup/spk_ttyio.c +++ linux-staging/drivers/staging/speakup/spk_tt

Re: [patch 0/6] staging: speakup: migrate synths to use TTY-based comms

2017-04-29 Thread Okash Khawaja
Hi, Forgot to add intro. Following is what I wanted to say: This patchset migrates all external synths from using raw serial i/o to using tty-based comms. The synths not migrated are internal ones - plugged directly into motherboard, communicating over ISA etc. It's important to note that these p

[patch 1/1] staging: speakup: flush tty buffers and ensure hardware flow control

2017-05-09 Thread okash . khawaja
synth_flush is called. It also tries to ensure that hardware flow control is enabled, by setting CRTSCTS using tty's termios. Reported-by: John Covici Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/staging/speakup/seria

[patch 0/1] staging: speakup: flush tty buffers and ensure hardware flow control

2017-05-09 Thread okash . khawaja
Hi, This patch applies on top of previous patchset which migrates synths to TTY [1]. It fixes couple of issues and tries to ensure hardware flow control is enabled. Thanks, Okash [1] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1387738.html _

Re: [patch 1/1] staging: speakup: flush tty buffers and ensure hardware flow control

2017-05-11 Thread Okash Khawaja
Hi Alan, On Wed, May 10, 2017 at 08:41:51PM +0100, Alan Cox wrote: > > + if (!(tmp_termios.c_cflag & CRTSCTS)) { > > + tmp_termios.c_cflag |= CRTSCTS; > > + ret = tty_set_termios(tty, &tmp_termios); > > + if (ret) > > + pr_warn("speakup: Failed to

Re: [patch 1/1] staging: speakup: flush tty buffers and ensure hardware flow control

2017-05-12 Thread Okash Khawaja
On Thu, May 11, 2017 at 02:33:14PM +0100, Alan Cox wrote: > On Thu, 11 May 2017 09:29:14 +0100 > Okash Khawaja wrote: > > > Hi Alan, > > > > On Wed, May 10, 2017 at 08:41:51PM +0100, Alan Cox wrote: > > > > +

[patch v2 1/1] staging: speakup: flush tty buffers and ensure hardware flow control

2017-05-12 Thread Okash Khawaja
synth_flush is called. It also tries to ensure that hardware flow control is enabled, by setting CRTSCTS using tty's termios. Reported-by: John Covici Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/staging/speakup/seria

Re: [patch 2/6] tty: export tty_open_by_driver

2017-05-15 Thread Okash Khawaja
Hi, On Mon, May 15, 2017 at 11:31 AM, Greg Kroah-Hartman wrote: > On Sat, Apr 29, 2017 at 08:52:59PM +0100, Okash Khawaja wrote: >> This applies on top of the changes already in staging-next branch which allow >> kernel access to TTY dev. >> >> Signe-doff-by: Ok

[patch v2 1/6] tty: export tty_open_by_driver

2017-05-15 Thread Okash Khawaja
umerate it while providing the existing tty API to avoid regressions (and to debug)." The exported funtion is used later in this patch set to gain access to tty_struct. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/tty/tty_io.c

[patch v2 6/6] staging: speakup: flush tty buffers and ensure hardware flow control

2017-05-15 Thread Okash Khawaja
synth_flush is called. It also tries to ensure that hardware flow control is enabled, by setting CRTSCTS using tty's termios. Reported-by: John Covici Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/staging/speakup/seria

[patch v2 5/6] staging: speakup: migrate apollo, ltlk, audptr, decext, dectlk and spkout

2017-05-15 Thread Okash Khawaja
This patch simply uses the changes introduced in previous patches and migrates apollo, ltlk, audptr, decext, spkout and dectlk. Migrations are straightforward function pointer updates. Signed-off by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/staging/speakup

[patch v2 2/6] staging: speakup: add tty-based comms functions

2017-05-15 Thread Okash Khawaja
witch to accessing serial ports through the TTY subsystem, whenever appropriate. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/staging/speakup/Makefile === --- linux-staging.orig/drivers/st

[patch v2 0/6] staging: speakup: migrate synths to use TTY-based comms

2017-05-15 Thread Okash Khawaja
This patchset migrates all external synths from using raw serial i/o to using tty-based comms. The synths not migrated are internal ones - plugged directly into motherboard, communicating over ISA etc. It's important to note that these patches access TTY from inside kernel. Here is the summary of

[patch v2 4/6] staging: speakup: add send_xchar, tiocmset and input functionality for tty

2017-05-15 Thread Okash Khawaja
_buf2. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/staging/speakup/spk_ttyio.c === --- linux-staging.orig/drivers/staging/speakup/spk_ttyio.c +++ linux-staging/drivers/staging/speakup/spk_tt

[patch v2 3/6] staging: speakup: migrate acntsa, bns, dummy and txprt to ttyio

2017-05-15 Thread Okash Khawaja
This changes the above five synths to TTY-based comms. They were chosen as a first pass because their serial comms are straightforward, i.e. they don't use serial input and don't do internal port knocking. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-stagi

Re: [patch v2 6/6] staging: speakup: flush tty buffers and ensure hardware flow control

2017-05-16 Thread Okash Khawaja
Hi, On Tue, May 16, 2017 at 1:00 PM, Greg Kroah-Hartman wrote: > On Mon, May 15, 2017 at 06:45:37PM +0100, Okash Khawaja wrote: >> This patch fixes the issue where TTY-migrated synths would take a while to >> shut up after hitting numpad enter key. When calling synth_flush, even

Re: [patch v2 6/6] staging: speakup: flush tty buffers and ensure hardware flow control

2017-05-16 Thread Okash Khawaja
> On 16 May 2017, at 13:28, Greg Kroah-Hartman > wrote: > >> On Tue, May 16, 2017 at 01:19:10PM +0100, Okash Khawaja wrote: >> Hi, >> >> On Tue, May 16, 2017 at 1:00 PM, Greg Kroah-Hartman >> wrote: >>> On Mon, May 15, 2017 at 06:45:37PM +0100

[patch] staging: speakup: check for null before calling TTY's flush_buffer

2017-05-31 Thread Okash Khawaja
We should check the flush_buffer method of a tty for null before invoking it. Some drivers such as usbserial don't implement flush_buffer. This will be required for upcoming patches where we expand spk_ttyio to support more than just ttyS*. Signed-off-by: Okash Khawaja Reviewed-by: S

[patch] staging: speakup: remove unused code

2017-06-01 Thread Okash Khawaja
In spk_ttyio_release we read tty's index but never do anything with it. The patch removes this dead code. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault --- drivers/staging/speakup/spk_ttyio.c |3 --- 1 file changed, 3 deletions(-) --- a/drivers/staging/speakup/spk_tt

Re: [PATCH 1/4] staging: speakup: add a missing blank line after declaration

2017-06-07 Thread Okash Khawaja
On Mon, Jun 05, 2017 at 11:43:55PM -0400, Bo YU wrote: > Fixed checkpatch warning by adding a blank line after declare > expression > > Signed-off-by: Bo YU Reviewed-by: Okash Khawaja > --- > drivers/staging/speakup/serialio.c |1 + > 1 file changed, 1 insertion

Re: [PATCH 2/4] staging: speakup: add a space around '|'

2017-06-07 Thread Okash Khawaja
On Mon, Jun 05, 2017 at 11:44:11PM -0400, Bo YU wrote: > Add a space around logical symbol '|' to wipe out checkpatch check > > Signed-off-by: Bo YU Reviewed-by: Okash Khawaja > --- > drivers/staging/speakup/serialio.c |2 +- > 1 file changed, 1 insertion

Re: [PATCH 3/4] staging: speakup: in serialio.c no over 80 chars long

2017-06-07 Thread Okash Khawaja
On Mon, Jun 05, 2017 at 11:44:26PM -0400, Bo YU wrote: > Fixed the checkpatch.pl warning: > > WARNING: line over 80 characters > > Signed-off-by: Bo YU Reviewed-by: Okash Khawaja > --- > drivers/staging/speakup/serialio.c |6 -- > 1 file changed, 4 in

Re: [PATCH 4/4] staging: speakup: alignment match open parens

2017-06-07 Thread Okash Khawaja
On Mon, Jun 05, 2017 at 11:44:40PM -0400, Bo YU wrote: > I have aligned argument with parenthesis, so checkpatch no check also. > > Signed-off-by: Bo YU Reviewed-by: Okash Khawaja > --- > drivers/staging/speakup/serialio.c |2 +- > 1 file changed, 1 insertion(+), 1 del

Re: [PATCH 0/4] staging: speakup: fix code style

2017-06-07 Thread Okash Khawaja
Hi, On Mon, Jun 05, 2017 at 11:42:59PM -0400, Bo YU wrote: > As checkpatch.pl reported, i fixed these complaint one by one. Maybe > patch 04 depend on patch 02. Thanks for the patches :) I've reviewed them all Okash ___ devel mailing list de...@linuxdr

[patch] staging: speakup: migrate bns to tty

2017-06-07 Thread Okash Khawaja
Migration of bns was missed out in the patch https://patchwork.kernel.org/patch/9727725/. This patch does it by updating relevant function pointers, just like in the patch linked above. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault --- drivers/staging/speakup/speakup_bns.c |8

[patch 1/2] staging: speakup: add function to convert dev name to number

2017-06-13 Thread okash . khawaja
selected synths, lp*. In order to do this, the patch also introduces a string member variable named 'dev' to struct spk_synth. 'dev' represents the device name - ttyUSB0 etc - which needs conversion to dev_t. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault --- dri

[patch 0/2] staging: speakup: support more than ttyS*

2017-06-13 Thread okash . khawaja
Hi, These patches extend speakup support to ttyUSB* and lp*. They introduce a new module param dev whose function is similar to ser but instead of taking serial port number as argument, it takes strings like ttyS0 or ttyUSB0. First patch just adds functionality to convert such strings into dev_t.

[patch 2/2] staging: speakup: make ttyio synths use device name

2017-06-13 Thread okash . khawaja
used. If both are non-default then dev is used. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault --- drivers/staging/speakup/speakup_acntsa.c |3 +++ drivers/staging/speakup/speakup_apollo.c |3 +++ drivers/staging/speakup/speakup_audptr.c |3 +++ drivers/staging/speakup

Re: [patch 1/2] staging: speakup: add function to convert dev name to number

2017-06-14 Thread Okash Khawaja
Hi, On Wed, Jun 14, 2017 at 03:04:18PM +0200, Greg Kroah-Hartman wrote: > The console stuff is odd though, but that is each driver defining the > name for itself, major/minor does not apply. Also, a separate driver is > not having to figure this all out. I wonder if we could just add a tty > co

Re: [patch 1/2] staging: speakup: add function to convert dev name to number

2017-06-15 Thread Okash Khawaja
Hi, On Wed, Jun 14, 2017 at 9:23 AM, Dan Carpenter wrote: [...] > > Could you call it "dev_name" instead? I normally expect "dev" to be a > device struct. Thanks for the feedback. Will keep these in mind for next version of the patch. Okash ___ devel

tty: define tty_open_by_driver when CONFIG_TTY is not defined

2017-06-17 Thread Okash Khawaja
ned-off-by: Okash Khawaja --- include/linux/tty.h |3 +++ 1 file changed, 3 insertions(+) --- a/include/linux/tty.h +++ b/include/linux/tty.h @@ -422,6 +422,9 @@ static inline int __init tty_init(void) { return 0; } static inline const char *tty_name(const struct tty_struct *tty) { ret

Re: [patch 1/2] staging: speakup: add function to convert dev name to number

2017-06-17 Thread Okash Khawaja
Hi, On Thu, Jun 15, 2017 at 07:52:51AM +0100, Okash Khawaja wrote: > On Wed, Jun 14, 2017 at 03:04:18PM +0200, Greg Kroah-Hartman wrote: > > The console stuff is odd though, but that is each driver defining the > > name for itself, major/minor does not apply. Also, a separate dr

Re: [patch 1/2] staging: speakup: add function to convert dev name to number

2017-06-17 Thread Okash Khawaja
On Sat, Jun 17, 2017 at 12:25:34PM +0200, Greg Kroah-Hartman wrote: > On Sat, Jun 17, 2017 at 11:16:44AM +0100, Okash Khawaja wrote: > > Hi, > > > > On Thu, Jun 15, 2017 at 07:52:51AM +0100, Okash Khawaja wrote: > > > On Wed, Jun 14, 2017 at 03:04:18PM +

[patch v2] tty: define tty_open_by_driver when CONFIG_TTY is not defined

2017-06-17 Thread Okash Khawaja
ned-off-by: Okash Khawaja --- include/linux/tty.h |3 +++ 1 file changed, 3 insertions(+) --- a/include/linux/tty.h +++ b/include/linux/tty.h @@ -422,6 +422,9 @@ static inline int __init tty_init(void) { return 0; } static inline const char *tty_name(const struct tty_struct *tty) { ret

[patch v2 0/3] staging: speakup: support more than ttyS*

2017-06-18 Thread Okash Khawaja
Hi, The patchset now contains a separate patch for dev name-to-number conversion functionality inside tty_io.c. These patches extend speakup support to ttyUSB* and lp*. They introduce a new module param dev whose function is similar to ser but instead of taking serial port number as argument, it

[patch v2 1/3] tty: add function to convert device name to number

2017-06-18 Thread Okash Khawaja
The function converts strings like ttyS0 and ttyUSB0 to dev_t like (4, 64) and (188, 0). It does this by scanning tty_drivers list for corresponding device name and index. If the driver is not registered, this function returns -ENODEV. It also acquires tty_mutex. Signed-off-by: Okash Khawaja

[patch v2 3/3] staging: speakup: make ttyio synths use device name

2017-06-18 Thread Okash Khawaja
used. If both are non-default then dev is used. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault --- drivers/staging/speakup/speakup_acntsa.c |3 +++ drivers/staging/speakup/speakup_apollo.c |3 +++ drivers/staging/speakup/speakup_audptr.c |3 +++ drivers/staging/speakup

[patch v2 2/3] staging: speakup: check and convert dev name or ser to dev_t

2017-06-18 Thread Okash Khawaja
sed in. It currently supports ttyS*, ttyUSB* and, for selected synths, lp*. The patch also introduces a string member variable named 'dev_name' to struct spk_synth. 'dev_name' represents the device name - ttyUSB0 etc - which needs conversion to dev_t. Signed-off-by: Okash Khawaja

Re: [patch v2 2/3] staging: speakup: check and convert dev name or ser to dev_t

2017-06-18 Thread Okash Khawaja
Hi, Thanks for the reviews. Couple of things inlined below. On Sun, Jun 18, 2017 at 04:35:21PM +0300, Andy Shevchenko wrote: > > > +const char *lp_supported[] = { "acntsa", "bns", "dummy", "txprt" }; > > static ? Sure! > > + if (ser < 0 || ser > (255 - 64)) { > > > +pr_e

Re: [patch v2 2/3] staging: speakup: check and convert dev name or ser to dev_t

2017-06-18 Thread Okash Khawaja
On Mon, Jun 19, 2017 at 09:15:33AM +0800, Greg Kroah-Hartman wrote: > > +int ser_to_dev(int ser, dev_t *dev_no) > > +{ > > + if (ser < 0 || ser > (255 - 64)) { > > +pr_err("speakup: Invalid ser param. \ > > + Must be between 0 and 191 inclusive.\n"); > >

Re: [patch v2 1/3] tty: add function to convert device name to number

2017-06-19 Thread Okash Khawaja
On Sun, Jun 18, 2017 at 04:27:42PM +0300, Andy Shevchenko wrote: > This doesn't have actual parameter name. > Btw, I would drop dev_ suffix completely from parameter (you have it > in function name). Good call, thanks. > > + * Locking: this acquires tty_mutex > > ...and releases. > > Perhap

[patch v3 2/3] staging: speakup: check and convert dev name or ser to dev_t

2017-06-19 Thread Okash Khawaja
sed in. It currently supports ttyS*, ttyUSB* and, for selected synths, lp*. The patch also introduces a string member variable named 'dev_name' to struct spk_synth. 'dev_name' represents the device name - ttyUSB0 etc - which needs conversion to dev_t. Signed-off-by: Okash Khawaja

[patch v3 1/3] tty: add function to convert device name to number

2017-06-19 Thread Okash Khawaja
The function converts strings like ttyS0 and ttyUSB0 to dev_t like (4, 64) and (188, 0). It does this by scanning tty_drivers list for corresponding device name and index. If the driver is not registered, this function returns -ENODEV. It also acquires tty_mutex. Signed-off-by: Okash Khawaja

[patch v3 0/3] staging: speakup: support more than ttyS*

2017-06-19 Thread Okash Khawaja
Hi, I have updated the patches based on feedback. For patch 1, In favour of consistency, I've updated the code which extracts trailing digits so that it is like similar code in tty_find_polling_driver. Also fixed checkpatch warnings. Here's summary of the patches Patch 1 adds functionality to co

[patch v3 3/3] staging: speakup: make ttyio synths use device name

2017-06-19 Thread Okash Khawaja
used. If both are non-default then dev is used. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Reviewed-by: Andy Shevchenko --- drivers/staging/speakup/speakup_acntsa.c |3 +++ drivers/staging/speakup/speakup_apollo.c |3 +++ drivers/staging/speakup/speakup_audptr.c |3

[patch] staging: speakup: fix synth caching when synth init fails

2017-06-20 Thread Okash Khawaja
removing the cached synth - is never called. Next time the failing synth is added again it succeeds because synth_add finds it cached inside synths[]. This patch fixes this by caching a synth only after do_synth_init succeeds. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault --- drivers

[PATCH] staging: gdm72xx: fix address space parse warnings

2015-11-29 Thread Okash Khawaja
: incorrect type in argument 2 (different address spaces) expected void const [noderef] *from got void *buf This patch casts the user space pointers to have __user by using __force. Signed-off-by: Okash Khawaja --- drivers/staging/gdm72xx/gdm_wimax.c | 10 -- 1 file changed, 8 insertions

Re: [PATCH] staging: gdm72xx: fix address space parse warnings

2015-12-11 Thread Okash Khawaja
Thanks, that's a cleaner approach. Apologies for delayed reply as I'm in middle of a house move. I'll send an updated patch soon. Okash > On 2 Dec 2015, at 13:17, Dan Carpenter wrote: > > Probably it's better to create a different struct: > > struct udata_s { >unsigned int size; >void

Re: [PATCH] staging: gdm72xx: fix address space parse warnings

2015-12-11 Thread Okash Khawaja
> On 11 Dec 2015, at 10:52, Dan Carpenter wrote: > >> On Fri, Dec 11, 2015 at 10:33:13AM +, Okash Khawaja wrote: >> Thanks, that's a cleaner approach. Apologies for delayed reply as I'm in >> middle of a house move. I'll send an updated patch soon.

[PATCH v2] staging: gdm72xx: fix address space warnings

2015-12-11 Thread Okash Khawaja
, in order to make the distinction explicit. Finally, it explicitly casts the argument passed to `gdm_update_fsm()` using __force to avoid the warning "cast removes address space of expression". Signed-off-by: Okash Khawaja --- drivers/staging/gdm72xx/gdm_wimax.c | 7 --- drive

[PATCH] staging: lustre: fix address space mismatches

2015-12-15 Thread Okash Khawaja
ction names and signatures same - other than the __user attribute - ensures that object inheritance continues to work as it was, but address space discrepency is removed. That removes a whole bunch of address space warnings. Signed-off-by: Okash Khawaja --- drivers/staging/lustre/lustre/in

  1   2   >