All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix set default baud rate to 115200
@ 2010-01-05  8:39 Zhang, Zhenhua
  2010-01-05 16:32 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang, Zhenhua @ 2010-01-05  8:39 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 371 bytes --]

Hi,

I found N900 could not be powered on by atgen driver due to baud rate problem.
If I add 'Baud=115200' into modem.conf, everything is fine. In gatchat/gattty.c,
the default baud rate is B0 which looks not correct, so I wonder whether we
should set the default baud rate to some values like minicom does.

My proposed fix was attached.

Regards,
Zhenhua
 

[-- Attachment #2: 0001-Fix-set-default-baud-rate-to-115200.patch --]
[-- Type: application/octet-stream, Size: 650 bytes --]

From b2b2b26a85f9165df582dcc8c332fc0191a29d80 Mon Sep 17 00:00:00 2001
From: Zhenhua Zhang <zhenhua.zhang@intel.com>
Date: Tue, 5 Jan 2010 16:23:08 +0800
Subject: [PATCH] Fix set default baud rate to 115200

---
 gatchat/gattty.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gatchat/gattty.c b/gatchat/gattty.c
index 02ca389..94ec37f 100644
--- a/gatchat/gattty.c
+++ b/gatchat/gattty.c
@@ -198,6 +198,8 @@ static int open_device(const char *tty, GHashTable *options)
 	memset(&ti, 0, sizeof(ti));
 	cfmakeraw(&ti);
 
+	set_baud("115200", &ti);
+
 	if (options) {
 		GHashTableIter iter;
 		const char *key;
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-05 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-05  8:39 [PATCH] Fix set default baud rate to 115200 Zhang, Zhenhua
2010-01-05 16:32 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.