[PATCH] serial: mxs-auart: support CMSPAR termios cflag

2016-12-11 Thread Wolfgang Ocker
If CMSPAR is set in the c_cflag of termios, "stick" parity is enabled. Tested on an i.MX28 system Signed-off-by: Wolfgang Ocker --- v2: require PARENB to be also set in termios' c_cflag for CMSPAR --- drivers/tty/serial/mxs-auart.c | 3 +++ 1 file changed, 3 insertions(+)

[PATCH] serial: mxs-auart: support CMSPAR termios cflag

2016-12-11 Thread Wolfgang Ocker
If CMSPAR is set in the c_cflag of termios, "stick" parity is enabled. Tested on an i.MX28 system Signed-off-by: Wolfgang Ocker --- v2: require PARENB to be also set in termios' c_cflag for CMSPAR --- drivers/tty/serial/mxs-auart.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH] serial: mxs-auart: support CMSPAR termios cflag

2016-12-06 Thread Wolfgang Ocker
On Tue, 2016-12-06 at 14:36 +0100, Stefan Wahren wrote: > Hi Wolfgang, > > > --- a/drivers/tty/serial/mxs-auart.c > > +++ b/drivers/tty/serial/mxs-auart.c > > @@ -95,6 +95,7 @@ > >  #define AUART_LINECTRL_BAUD_DIVFRAC_SHIFT 8 > >  #define AUART_LINECTRL_BAUD_DIVFRAC_MASK 0x3f00 > >  

Re: [PATCH] serial: mxs-auart: support CMSPAR termios cflag

2016-12-06 Thread Wolfgang Ocker
On Tue, 2016-12-06 at 14:36 +0100, Stefan Wahren wrote: > Hi Wolfgang, > > > --- a/drivers/tty/serial/mxs-auart.c > > +++ b/drivers/tty/serial/mxs-auart.c > > @@ -95,6 +95,7 @@ > >  #define AUART_LINECTRL_BAUD_DIVFRAC_SHIFT 8 > >  #define AUART_LINECTRL_BAUD_DIVFRAC_MASK 0x3f00 > >  

Re: [PATCH] serial: mxs-auart: support CMSPAR termios cflag

2016-12-06 Thread Stefan Wahren
Hi Wolfgang, > --- a/drivers/tty/serial/mxs-auart.c > +++ b/drivers/tty/serial/mxs-auart.c > @@ -95,6 +95,7 @@ > #define AUART_LINECTRL_BAUD_DIVFRAC_SHIFT8 > #define AUART_LINECTRL_BAUD_DIVFRAC_MASK 0x3f00 > #define AUART_LINECTRL_BAUD_DIVFRAC(v) (((v) & 0x3f) << 8) >

Re: [PATCH] serial: mxs-auart: support CMSPAR termios cflag

2016-12-06 Thread Stefan Wahren
Hi Wolfgang, > --- a/drivers/tty/serial/mxs-auart.c > +++ b/drivers/tty/serial/mxs-auart.c > @@ -95,6 +95,7 @@ > #define AUART_LINECTRL_BAUD_DIVFRAC_SHIFT8 > #define AUART_LINECTRL_BAUD_DIVFRAC_MASK 0x3f00 > #define AUART_LINECTRL_BAUD_DIVFRAC(v) (((v) & 0x3f) << 8) >

[PATCH] serial: mxs-auart: support CMSPAR termios cflag

2016-11-30 Thread Wolfgang Ocker
If CMSPAR is set in the c_cflag of termios, "stick" parity is enabled. Tested on an i.MX28 system Signed-off-by: Wolfgang Ocker --- drivers/tty/serial/mxs-auart.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/mxs-auart.c

[PATCH] serial: mxs-auart: support CMSPAR termios cflag

2016-11-30 Thread Wolfgang Ocker
If CMSPAR is set in the c_cflag of termios, "stick" parity is enabled. Tested on an i.MX28 system Signed-off-by: Wolfgang Ocker --- drivers/tty/serial/mxs-auart.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/mxs-auart.c