All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] Add support of Huawei EM770 modem
Date: Wed, 10 Feb 2010 16:37:31 -0600	[thread overview]
Message-ID: <201002101637.32713.denkenz@gmail.com> (raw)
In-Reply-To: <1EC975D79B8B1F4BBDC50EA54418A00412219846A9@shzsmsx501.ccr.corp.intel.com>

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

Hi Yang,

> There are two known parts of code that may have problem and need your
>  comments. 1. Once connecting this modem to PC via USB, we can get 5 tty
>  ports: ttyUSB0, ttyUSB1, ttyUSB2, ttyUSB3 and ttyUSB4. The correct way to
>  talk to this modem is using ttyUSB2. I'm not sure if I handled this
>  correctly in file udev.c. 2. When creating the modem, a global modem id

So Andrew had it exactly correct, you can't just use ttyUSB2 here.  Most 
devices have other udev attributes you can examine for what type of port it 
is, to help you pick the right one.  Perhaps examination of 'udevadm info --
attribute-walk --path=<device>' might be in order?

>  will be appended to the name of it while constructing the path. This modem
>  has name "huawei_em770", thus the path becomes things like
>  "/huawei_em7700" or "/huawei_em7701". This looks strange. Need I change
>  the name of this modem, or can we use some smarter way to append the modem
>  id?

We should be using the udev short serial from the device.  For some reason 
this seems to be failing on the EM770.  Can you check whether get_serial 
returns NULL for this device?

Regards,
-Denis

  parent reply	other threads:[~2010-02-10 22:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-10 10:17 [PATCH] Add support of Huawei EM770 modem Gu, Yang
2010-02-10 17:03 ` Andrzej Zaborowski
2010-02-10 22:37 ` Denis Kenzior [this message]
2010-02-11  5:54   ` Gu, Yang
2010-02-12  1:53     ` Andrzej Zaborowski
2010-02-24  3:23       ` Gu, Yang
  -- strict thread matches above, loose matches on Subject: below --
2010-03-16  6:37 Yang Gu
2010-03-16  6:45 ` Marcel Holtmann
2010-03-16  7:05   ` Gu, Yang
2010-03-16  7:42 Yang Gu
2010-03-16  8:34 ` Marcel Holtmann

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=201002101637.32713.denkenz@gmail.com \
    --to=denkenz@gmail.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.