serial: TTY: new ldisc for TI BT/FM/GPS chips
patch below,
Quoted 18 lines · On Mon, Mar 22, 2010 at 04:19:12PM -0500, [email protected] wrote:
Quoted 9 lines
From: Pavan Savoy <[email protected]>
This change adds the
Kconfigand Make file for TI's ST line discipline driver and the BlueZ driver for BT core of the TI BT/FM/GPS combo chip.Signed-off-by Pavan Savoy <[email protected]>--- drivers/misc/Kconfig | 1 +Why 'misc'? Why not 'char' like all the other ldiscs?
Or '
drivers/ldisc' to be more specific?We've discussed having /tty or
drivers/ttyfor a while. The ldiscs are currently everywhere -drivers/net, isdn, char ....
Quoted 7 lines
I am not sure an ldisc directory helps though - slip and ppp are in
drivers/netfor example and clearly belong there.
#defineN_V25319 /* Codec control over voice modem */
+#defineN_TI_SHARED20 /* for TI's WL7 connectivity chips */
Be more specific or some future TI shared bus protocol might cause confusionN_TI_WL7sounds fine.
Alan
Yes, I just felt that drivers which belong no-where are put up in drivers/misc.
Oh and name now changed to N_TI_WL, not WL7 because it kinda works with WL6 chips with BT and FM only too, WL7 has the extra GPS core.
From 4770551c9ae22ee35b3a9ef5cc9395f218962021 Mon Sep 17 00:00:00 2001
From: Pavan Savoy <[email protected]>
Date: Mon, 22 Mar 2010 14:37:04 -0400
Subject: [PATCH 1/7] serial: TTY: new ldisc for TI BT/FM/GPS chips
A new N_TI_WL line discipline added for TI BT/FM/GPS combo chips which make use of same TTY to communicate with chip. This is to be made use of individual protocol BT/FM/GPS drivers.
--- include/linux/tty.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
include/linux/tty.h +0 -0
@@ -23,7 +23,7 @@*/ #define NR_UNIX98_PTY_DEFAULT 4096/* Default maximum for Unix98
ptys */
#define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */
-#define NR_LDISCS 20
+#define NR_LDISCS 21
/* line disciplines */
#define N_TTY 0
@@ -48,6 +48,7 @@
#define N_PPS 18 /* Pulse per Second */
#define N_V253 19 /* Codec control over voice modem */
+#define N_TI_WL 20 /* for TI's WL connectivity chips */
/*
* This character is the same as _POSIX_VDISABLE: it cannot be used as
Signature · 1 line
1.5.4.3