From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau <frederic.dalleau@collabora.co.uk>
To: ofono@ofono.org
Subject: [PATCH 1/2] udevng: Detect huawei E3372 pcui
Date: Thu, 29 Sep 2016 09:52:57 +0200 [thread overview]
Message-ID: <1475135578-26864-2-git-send-email-frederic.dalleau@collabora.co.uk> (raw)
In-Reply-To: <1475135578-26864-1-git-send-email-frederic.dalleau@collabora.co.uk>
[-- Attachment #1: Type: text/plain, Size: 917 bytes --]
The huawei E3372 exposes two USB tty at /dev/ttyUSB0 and /dev/ttyUSB1
/dev/ttyUSB1 is properly detected as modem.
/dev/ttyUSB0 is the pcui.
lsusb shows 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Signed-off-by: Frédéric Dalleau <frederic.dalleau@collabora.co.uk>
---
plugins/udevng.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/udevng.c b/plugins/udevng.c
index 607e381..1a85246 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -330,6 +330,7 @@ static gboolean setup_huawei(struct modem_info *modem)
} else if (g_strcmp0(info->label, "pcui") == 0 ||
g_strcmp0(info->interface, "255/1/2") == 0 ||
g_strcmp0(info->interface, "255/2/2") == 0 ||
+ g_strcmp0(info->interface, "255/2/18") == 0 ||
g_strcmp0(info->interface, "255/1/50") == 0) {
pcui = info->devnode;
} else if (g_strcmp0(info->label, "diag") == 0 ||
--
2.7.4
next prev parent reply other threads:[~2016-09-29 7:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-29 7:52 [PATCH 0/2] Detect huawei E3372 =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
2016-09-29 7:52 ` =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau [this message]
2016-09-29 7:52 ` [PATCH 2/2] udevng: Detect huawei E3372 modem and pcui =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
2016-09-29 16:01 ` Denis Kenzior
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=1475135578-26864-2-git-send-email-frederic.dalleau@collabora.co.uk \
--to=frederic.dalleau@collabora.co.uk \
--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.