All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhenhua Zhang <zhenhua.zhang@intel.com>
To: ofono@ofono.org
Subject: Re: [PATCH] Fix Let data device be optional for mbm driver
Date: Mon, 19 Apr 2010 09:53:24 +0800	[thread overview]
Message-ID: <4BCBB794.6050508@intel.com> (raw)
In-Reply-To: <1271429576.22838.26.camel@localhost.localdomain>

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

Hi Marcel,

On 04/16/2010 10:52 PM, Marcel Holtmann wrote:
> Hi Zhenhua,
>
>> Dell 5530 modem has no data device port. So data device should be
>> optional in mbm drvier.
>
> can you please include the content of /proc/bus/usb/devices for this
> device and the sysfs descriptions for each TTY port.

I realize my previous fix is not proper to 5530. I can see three ports 
(ttyACM0~ttyACM2) for Dell 5530 modem. The sysfs descriptions are posted 
at below URLs:

ttyACM0	http://pastebin.com/aW4PyHBw
ttyACM1	http://pastebin.com/igZxccVe
ttyACM2	http://pastebin.com/T7DFmXTv

ttyACM0 is described as 'Dell Wireless 5530 HSPA Mobile Broadband 
Minicard Modem'.

ttyACM1 is described as 'Dell Wireless 5530 HSPA Mobile Broadband 
Minicard Modem 2'.

I cann't tell which one is modem device or data device. But obviously, 
we should add 'Minicard Modem 2' as suffix candidate. So my updated 
patch is attached. Now we can probe 5530 correctly again. the output is:

ofonod[3737]: src/modem.c:ofono_modem_create() name: 3558620217367190, 
type: mbm
ofonod[3737]: src/modem.c:set_modem_property() modem 0x8a576c0 property Path
ofonod[3737]: src/modem.c:set_modem_property() modem 0x8a576c0 property 
Registered
ofonod[3737]: plugins/udev.c:add_mbm() desc: Dell Wireless 5530 HSPA 
Mobile Broadband Minicard Modem
ofonod[3737]: src/modem.c:get_modem_property() modem 0x8a576c0 property 
Registered
ofonod[3737]: src/modem.c:get_modem_property() modem 0x8a576c0 property 
ModemDevice
ofonod[3737]: src/modem.c:set_modem_property() modem 0x8a576c0 property 
ModemDevice
ofonod[3737]: src/modem.c:get_modem_property() modem 0x8a576c0 property 
ModemDevice
ofonod[3737]: src/modem.c:get_modem_property() modem 0x8a576c0 property 
NetworkInterface
ofonod[3737]: src/modem.c:get_modem_property() modem 0x8a576c0 property Path
ofonod[3737]: plugins/udev.c:add_mbm() desc: Dell Wireless 5530 HSPA 
Mobile Broadband Minicard Modem 2
ofonod[3737]: src/modem.c:get_modem_property() modem 0x8a576c0 property 
Registered
ofonod[3737]: src/modem.c:get_modem_property() modem 0x8a576c0 property 
ModemDevice
ofonod[3737]: src/modem.c:set_modem_property() modem 0x8a576c0 property 
DataDevice
ofonod[3737]: src/modem.c:get_modem_property() modem 0x8a576c0 property 
ModemDevice
ofonod[3737]: src/modem.c:get_modem_property() modem 0x8a576c0 property 
NetworkInterface
ofonod[3737]: src/modem.c:get_modem_property() modem 0x8a576c0 property Path
ofonod[3737]: plugins/udev.c:add_mbm() desc: Dell Wireless 5530 HSPA 
Mobile Broadband Minicard NetworkAdapter
ofonod[3737]: src/modem.c:get_modem_property() modem 0x8a576c0 property 
Registered
ofonod[3737]: src/modem.c:set_modem_property() modem 0x8a576c0 property 
NetworkInterface
ofonod[3737]: src/modem.c:get_modem_property() modem 0x8a576c0 property 
ModemDevice
ofonod[3737]: src/modem.c:get_modem_property() modem 0x8a576c0 property 
NetworkInterface
ofonod[3737]: src/modem.c:set_modem_property() modem 0x8a576c0 property 
Registered
ofonod[3737]: src/modem.c:unregister_property() property 0x8a57ee0

> Regards
>
> Marcel
>
>
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org
> http://lists.ofono.org/listinfo/ofono
>


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-Add-Dell5530-modem-port-suffix-for-data-device.patch --]
[-- Type: text/x-patch, Size: 766 bytes --]

>From 44c8aba6261c95258c3b8918bbc321b1a3512d5f Mon Sep 17 00:00:00 2001
From: Zhenhua Zhang <zhenhua.zhang@intel.com>
Date: Mon, 19 Apr 2010 09:39:49 +0800
Subject: [PATCH] Fix Add Dell5530 modem port suffix for data device

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

diff --git a/plugins/udev.c b/plugins/udev.c
index a89b9d9..964ac65 100644
--- a/plugins/udev.c
+++ b/plugins/udev.c
@@ -112,6 +112,7 @@ static void add_mbm(struct ofono_modem *modem,
 		return;
 
 	if (g_str_has_suffix(desc, "Minicard 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, "Broadband USB Modem")) {
-- 
1.6.6.1


  reply	other threads:[~2010-04-19  1:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-16  5:33 [PATCH] Fix Let data device be optional for mbm driver Zhenhua Zhang
2010-04-16 14:52 ` Marcel Holtmann
2010-04-19  1:53   ` Zhenhua Zhang [this message]
2010-04-21 17:49     ` Denis Kenzior
2010-04-19  7:11   ` Vdovichev Alexander

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=4BCBB794.6050508@intel.com \
    --to=zhenhua.zhang@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.