From 19eba87ab9fad48b84589f4d2fb36371e37949fe Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 28 Dec 2010 10:24:52 +0100 Subject: Imported Debian patch 0.4+git.20100624t180933.6e79d15-2 --- debian/changelog | 7 +++++ .../patches/01-nokia-n900-longer-port-delay.patch | 30 ++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 38 insertions(+) create mode 100644 debian/patches/01-nokia-n900-longer-port-delay.patch diff --git a/debian/changelog b/debian/changelog index 71feb5d..c744baa 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +modemmanager (0.4+git.20100624t180933.6e79d15-2) unstable; urgency=low + + * Nokia N900 appears to need a longer port delay. + Patch cherry-picked from upstream Git. (Closes: #607982) + + -- Michael Biebl Tue, 28 Dec 2010 10:24:52 +0100 + modemmanager (0.4+git.20100624t180933.6e79d15-1) unstable; urgency=low [ Michael Biebl ] diff --git a/debian/patches/01-nokia-n900-longer-port-delay.patch b/debian/patches/01-nokia-n900-longer-port-delay.patch new file mode 100644 index 0000000..e68762e --- /dev/null +++ b/debian/patches/01-nokia-n900-longer-port-delay.patch @@ -0,0 +1,30 @@ +From 56665c19af431234ebe1b22cff9f0f9b9fb3d02f Mon Sep 17 00:00:00 2001 +From: Dan Williams +Date: Fri, 09 Jul 2010 19:35:36 +0000 +Subject: nokia: N900 appears to need a longer port delay (rh #583691) + +--- +diff --git a/plugins/mm-modem-nokia.c b/plugins/mm-modem-nokia.c +index eb90287..3cbea00 100644 +--- a/plugins/mm-modem-nokia.c ++++ b/plugins/mm-modem-nokia.c +@@ -54,6 +54,7 @@ grab_port (MMModem *modem, + MMGenericGsm *gsm = MM_GENERIC_GSM (modem); + MMPortType ptype = MM_PORT_TYPE_IGNORED; + MMPort *port = NULL; ++ gulong send_delay = 5000; + + if (suggested_type == MM_PORT_TYPE_UNKNOWN) { + if (!mm_generic_gsm_get_at_port (gsm, MM_PORT_TYPE_PRIMARY)) +@@ -71,6 +72,9 @@ grab_port (MMModem *modem, + mm_serial_parser_v1_e1_destroy); + } + ++ /* N900 appears to need longer delay between port bytes */ ++ g_object_set (G_OBJECT (port), MM_SERIAL_PORT_SEND_DELAY, send_delay, NULL); ++ + return !!port; + } + +-- +cgit v0.8.3-6-g21f6 diff --git a/debian/patches/series b/debian/patches/series index efe1532..3e19043 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ # patches for modemmanager +01-nokia-n900-longer-port-delay.patch -- cgit v1.2.3