All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhigang Li <zhigang.li@intel.com>
To: ofono@ofono.org
Subject: [PATCH] Enable hs 2330 MBM modem
Date: Fri, 28 Jan 2011 13:05:23 +0800	[thread overview]
Message-ID: <1296191123-4529-1-git-send-email-zhigang.li@intel.com> (raw)

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

---
 plugins/udev.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/plugins/udev.c b/plugins/udev.c
index 202b225..810049a 100644
--- a/plugins/udev.c
+++ b/plugins/udev.c
@@ -123,6 +123,7 @@ static void add_mbm(struct ofono_modem *modem,
 			g_str_has_suffix(desc, "Minicard Modem 2") ||
 			g_str_has_suffix(desc, "Mini-Card Modem") ||
 			g_str_has_suffix(desc, "Broadband Modem") ||
+			g_str_has_suffix(desc, "Module Modem") ||
 			g_str_has_suffix(desc, "Broadband USB Modem")) {
 		devnode = udev_device_get_devnode(udev_device);
 		if (ofono_modem_get_string(modem, MODEM_DEVICE) == NULL)
@@ -131,16 +132,19 @@ static void add_mbm(struct ofono_modem *modem,
 			ofono_modem_set_string(modem, DATA_DEVICE, devnode);
 	} else if (g_str_has_suffix(desc, "Minicard Data Modem") ||
 			g_str_has_suffix(desc, "Mini-Card Data Modem") ||
+			g_str_has_suffix(desc, "Data Modem") ||
 			g_str_has_suffix(desc, "Broadband Data Modem")) {
 		devnode = udev_device_get_devnode(udev_device);
 		ofono_modem_set_string(modem, DATA_DEVICE, devnode);
 	} else if (g_str_has_suffix(desc, "Minicard GPS Port") ||
 			g_str_has_suffix(desc, "Mini-Card GPRS Port") ||
+			g_str_has_suffix(desc, "Module NMEA") ||
 			g_str_has_suffix(desc, "Broadband GPS Port")) {
 		devnode = udev_device_get_devnode(udev_device);
 		ofono_modem_set_string(modem, GPS_DEVICE, devnode);
 	} else if (g_str_has_suffix(desc, "Minicard Network Adapter") ||
 			g_str_has_suffix(desc, "Mini-Card Network Adapter") ||
+			g_str_has_suffix(desc, "Module Network Adapter") ||
 			g_str_has_suffix(desc, "Broadband Network Adapter") ||
 			g_str_has_suffix(desc, "Minicard NetworkAdapter")) {
 		devnode = get_property(udev_device, "INTERFACE");
-- 
1.7.2.3


             reply	other threads:[~2011-01-28  5:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28  5:05 Zhigang Li [this message]
2011-01-28  9:16 ` [PATCH] Enable hs 2330 MBM modem Marcel Holtmann
2011-02-14  2:45   ` Li, Zhigang
2011-02-17  3:16     ` Marcel Holtmann
2011-02-17  6:57       ` Li, Zhigang
2011-02-23  8:50         ` Li, Zhigang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1296191123-4529-1-git-send-email-zhigang.li@intel.com \
    --to=zhigang.li@intel.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.