Skip to contentSkip to conversation

tty: Add C_MSPAR(tty)

PATCH In review Andrew Lunn 4 participants 7 messages Oct 23, 2013 – Oct 30, 2013 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tty: Add C_MSPAR(tty)

Add the missing C_MSPAR(tty) macro.

---
 include/linux/tty.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/tty.h +1 -0
index 64f8646..630678d 100644
@@ -137,6 +137,7 @@ struct tty_bufhead {
 #define C_CLOCAL(tty)	_C_FLAG((tty), CLOCAL)
 #define C_CIBAUD(tty)	_C_FLAG((tty), CIBAUD)
 #define C_CRTSCTS(tty)	_C_FLAG((tty), CRTSCTS)
+#define C_MSPAR(tty)	_C_FLAG((tty), CMSPAR)
 
 #define L_ISIG(tty)	_L_FLAG((tty), ISIG)
 #define L_ICANON(tty)	_L_FLAG((tty), ICANON)
Signature · 1 line
1.8.4.rc3
#1 lore raw
Quoted 12 lines · Andrew Lunn

Add the missing C_MSPAR(tty) macro.

---
  include/linux/tty.h | 1 +
  1 file changed, 1 insertion(+)
include/linux/tty.h +0 -0
index 64f8646..630678d 100644

include/linux/tty.h struct tty_bufhead { · line 143

Quoted 7 lines
include/linux/tty.h +1 -0
@@ -137,6 +137,7 @@ struct tty_bufhead {
  #define C_CLOCAL(tty)	_C_FLAG((tty), CLOCAL)
  #define C_CIBAUD(tty)	_C_FLAG((tty), CIBAUD)
  #define C_CRTSCTS(tty)	_C_FLAG((tty), CRTSCTS)
+#define C_MSPAR(tty)	_C_FLAG((tty), CMSPAR)
 
  #define L_ISIG(tty)	_L_FLAG((tty), ISIG)
  #define L_ICANON(tty)	_L_FLAG((tty), ICANON)

Is this to support an out-of-tree driver?

Regards,
Peter Hurley

#2 lore raw
Quoted 18 lines · Peter Hurley
Quoted 17 lines · Andrew Lunn

Add the missing C_MSPAR(tty) macro.

---
 include/linux/tty.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/tty.h +1 -0
index 64f8646..630678d 100644
@@ -137,6 +137,7 @@ struct tty_bufhead {
 #define C_CLOCAL(tty)	_C_FLAG((tty), CLOCAL)
 #define C_CIBAUD(tty)	_C_FLAG((tty), CIBAUD)
 #define C_CRTSCTS(tty)	_C_FLAG((tty), CRTSCTS)
+#define C_MSPAR(tty)	_C_FLAG((tty), CMSPAR)
 
Quoted 4 lines

include/linux/tty.h struct tty_bufhead { · line 143

Quoted 2 lines
include/linux/tty.h +0 -0
 #define L_ISIG(tty)	_L_FLAG((tty), ISIG)
 #define L_ICANON(tty)	_L_FLAG((tty), ICANON)

Is this to support an out-of-tree driver?

Hi Peter

It is to support a driver i'm trying to get accepted. It is a USB serial driver which was posted for the forth time today to the USB list:

http://article.gmane.org/gmane.linux.usb.general/96740

Andrew

#3 lore raw
In reply to Andrew Lunn
Quoted 1 line · Andrew Lunn

Add the missing C_MSPAR(tty) macro.

Please rename the macro C_CMSPAR to be consistent with the other termios-flag macros (with C_BAUD being the exception that confirms the rule).

Thanks,
Johan

Quoted 20 lines
---
 include/linux/tty.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/tty.h +1 -0
index 64f8646..630678d 100644
@@ -137,6 +137,7 @@ struct tty_bufhead {
 #define C_CLOCAL(tty)	_C_FLAG((tty), CLOCAL)
 #define C_CIBAUD(tty)	_C_FLAG((tty), CIBAUD)
 #define C_CRTSCTS(tty)	_C_FLAG((tty), CRTSCTS)
+#define C_MSPAR(tty)	_C_FLAG((tty), CMSPAR)
 
 #define L_ISIG(tty)	_L_FLAG((tty), ISIG)
 #define L_ICANON(tty)	_L_FLAG((tty), ICANON)
Signature · 1 line
1.8.4.rc3
#4 lore raw
Quoted 6 lines · Johan Hovold
Quoted 1 line · Andrew Lunn

Add the missing C_MSPAR(tty) macro.

Please rename the macro C_CMSPAR to be consistent with the other termios-flag macros (with C_BAUD being the exception that confirms the rule).

Hi Johan

O.K, i will rename it.

Should i add this to the MOXA patch series, or submit is separately? I'm just thinking about dependencies. It will probably be easier to take both through one tree.

Thanks
Andrew

maintainer
#5 lore raw
Quoted 8 lines · Andrew Lunn
Quoted 6 lines · Johan Hovold
Quoted 1 line · Andrew Lunn

Add the missing C_MSPAR(tty) macro.

Please rename the macro C_CMSPAR to be consistent with the other termios-flag macros (with C_BAUD being the exception that confirms the rule).

Quoted 7 lines

Hi Johan

O.K, i will rename it.

Should i add this to the MOXA patch series, or submit is separately? I'm just thinking about dependencies. It will probably be easier to take both through one tree.

I'll take both through the same tree, so might as well make it part of the same patch.

thanks,

greg k-h

#6 lore raw
In reply to Andrew Lunn
Quoted 8 lines · Andrew Lunn
Quoted 6 lines · Johan Hovold
Quoted 1 line · Andrew Lunn

Add the missing C_MSPAR(tty) macro.

Please rename the macro C_CMSPAR to be consistent with the other termios-flag macros (with C_BAUD being the exception that confirms the rule).

Quoted 7 lines

Hi Johan

O.K, i will rename it.

Should i add this to the MOXA patch series, or submit is separately? I'm just thinking about dependencies. It will probably be easier to take both through one tree.

Yeah, you're right. I was gonna mention this in my review of v4 (it's under way). Submit them as a two-part series for v5 and Greg can take them both through the usb tree.

Thanks,
Johan