All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH v4 4/4] udev: add Telit UC864-G and update udev rules
Date: Mon, 06 Jun 2011 18:25:44 -0500	[thread overview]
Message-ID: <4DED61F8.6090608@gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1106081719410.30119@entw48>

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

Hi Bernhard,

> Hi,
> I did not know how to better ask for some help so I sent this patch
> without being completely right.
> 
> I needed to move the ENV{OFONO_DRIVER}="telit" to the end like the other
> modems do. Without the add_modem is called with different modem objects.
> 
> The problem about the current patch is:
> 
> ofonod[31654]: src/modem.c:ofono_modem_create() name: 000000000002,
> type: telit
> 
> I want to ask for some advice on how to best debug this problem. I tried
> it with a short PROGRAM="/tmp/foo.pl" which prints the environment. If I
> add it to the
> 
> ATTRS{idVendor}=="1bc7", ENV{OFONO_DRIVER}="telit", PROGRAM="/tmp/foo.pl"
> 
> line the environment for OFONO_DRIVER do not exist. If I add the same
> script to one of the lines at the first section I get the proper
> OFONO_DRIVER telit envirionment.
> 
> Thanks in advance for any hints :)
> 
> I was not able to hard code the interface number as novatel does it
> because the interfaces change on different telit modems. I used the
> huawai code as base.

So let me understand what you're trying to achieve, you want to set an
environment variable telling the driver that a particular model has a
GPS port?

From what I remember of the Telit modems, all ports are fully
functional, so the GPS port can be on any tty.  If this is the case,
then the way this can be accomplished is by querying the model /
revision of the modem during the enable() stage in the modem driver and
adding the appropriate atom as needed.

Regards,
-Denis

  reply	other threads:[~2011-06-06 23:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-08 15:18 [PATCH v4 1/4] network-registration.c: add telit support Bernhard.Guillon
2011-06-06 22:52 ` Denis Kenzior
2011-06-08 15:18 ` [PATCH v4 2/4] Add basic Telit UC864-G support: Bernhard.Guillon
2011-06-08  9:29   ` Denis Kenzior
2011-06-14  8:42     ` Bernhard Guillon
2011-06-09 10:26   ` Marcel Holtmann
2011-06-08 15:18 ` [PATCH v4 3/4] atmodem/vendor.h: add OFONO_VENDOR_TELIT Bernhard.Guillon
2011-06-06 22:51   ` Denis Kenzior
2011-06-08 15:18 ` [PATCH v4 4/4] udev: add Telit UC864-G and update udev rules Bernhard.Guillon
2011-06-08 15:32   ` Bernhard Guillon
2011-06-06 23:25     ` Denis Kenzior [this message]
2011-06-10  8:32       ` Bernhard Guillon
2011-06-08  8:32         ` Denis Kenzior
2011-06-14  8:34           ` Bernhard Guillon
2011-06-13  9:28             ` Denis Kenzior
2011-06-15  9:12               ` Bernhard Guillon
2011-06-13  9:04   ` 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=4DED61F8.6090608@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.