From cf341f0ddfdc5f03755bd639099b263ac19ee432 Mon Sep 17 00:00:00 2001 From: Markinus Date: Sat, 4 Sep 2010 11:29:51 +0200 Subject: [PATCH] htcleo: add fix for PPP bug It's a hack, we have to find out why we have to remove the mutexes --- arch/arm/mach-msm/smd_tty.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-msm/smd_tty.c b/arch/arm/mach-msm/smd_tty.c index efd52ed0..1d1802a3 100644 --- a/arch/arm/mach-msm/smd_tty.c +++ b/arch/arm/mach-msm/smd_tty.c @@ -204,13 +204,16 @@ static int smd_tty_write(struct tty_struct *tty, ** never be able to write more data than there ** is currently space for */ +#ifndef CONFIG_MACH_HTCLEO mutex_lock(&smd_tty_lock); +#endif avail = smd_write_avail(info->ch); if (len > avail) len = avail; ret = smd_write(info->ch, buf, len); +#ifndef CONFIG_MACH_HTCLEO mutex_unlock(&smd_tty_lock); - +#endif return ret; }