All of lore.kernel.org
 help / color / mirror / Atom feed
From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau <frederic.dalleau@collabora.co.uk>
To: ofono@ofono.org
Subject: [PATCH 2/2] udevng: Detect huawei E3372 modem and pcui
Date: Thu, 29 Sep 2016 09:52:58 +0200	[thread overview]
Message-ID: <1475135578-26864-3-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: 1201 bytes --]

When the modes are modified with AT^SETPORT="FF;12,1,16", this modem
and pcui will appear using different ids. Update the interfaces
identifier accordingly.

Signed-off-by: Frédéric Dalleau <frederic.dalleau@collabora.co.uk>
---
 plugins/udevng.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/udevng.c b/plugins/udevng.c
index 1a85246..933bf4f 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -325,12 +325,14 @@ static gboolean setup_huawei(struct modem_info *modem)
 		if (g_strcmp0(info->label, "modem") == 0 ||
 				g_strcmp0(info->interface, "255/1/1") == 0 ||
 				g_strcmp0(info->interface, "255/2/1") == 0 ||
+				g_strcmp0(info->interface, "255/3/1") == 0 ||
 				g_strcmp0(info->interface, "255/1/49") == 0) {
 			mdm = info->devnode;
 		} 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/3/18") == 0 ||
 				g_strcmp0(info->interface, "255/1/50") == 0) {
 			pcui = info->devnode;
 		} else if (g_strcmp0(info->label, "diag") == 0 ||
-- 
2.7.4


  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 ` [PATCH 1/2] udevng: Detect huawei E3372 pcui =?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 16:01   ` [PATCH 2/2] udevng: Detect huawei E3372 modem and pcui 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-3-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.