From b960f32027537fcd20942139de79debba912275c Mon Sep 17 00:00:00 2001 From: Lukas-David Gorris Date: Sun, 29 Aug 2010 00:16:59 +0200 Subject: [PATCH] htcleo: This adds an SMD channel on /dev/smd1 which can be used with pppd. It works flawlessly without any dropped packages or performance problems. --- arch/arm/mach-msm/smd_tty.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-msm/smd_tty.c b/arch/arm/mach-msm/smd_tty.c index 33af0d45..a51f1729 100644 --- a/arch/arm/mach-msm/smd_tty.c +++ b/arch/arm/mach-msm/smd_tty.c @@ -26,6 +26,7 @@ #include #include +#include #define MAX_SMD_TTYS 32 @@ -118,7 +119,10 @@ static int smd_tty_open(struct tty_struct *tty, struct file *f) if (n == 0) { name = "SMD_DS"; } else if (n == 1) { - name = "SMD_DIAG"; + if(__amss_version==1550) + name = "SMD_DATA1"; + else + name = "SMD_DIAG"; } else if (n == 9) { #if defined(CONFIG_MACH_DESIREC) || defined(CONFIG_ARCH_MSM7X30) name = "SMD_DATA4";