From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: PATCH: Enable udev-based autodetection of calypso modem on Freerunner
Date: Mon, 20 Dec 2010 17:39:55 -0600 [thread overview]
Message-ID: <4D0FE94B.1010502@gmail.com> (raw)
In-Reply-To: <87ipyud6tb.fsf@ossau.uklinux.net>
[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]
Hi Neil,
On 12/15/2010 04:12 PM, Neil Jerram wrote:
> Hi all,
>
> With the patch below, ofono-0.36 (the current Debian unstable version)
> detects the calypso modem on my freerunner. (Whereas without it, it
> doesn't.)
We prefer if you use git send-email to format the patch for submission.
For now I applied your patch without the ofono.rules changes.
>
> I don't feel confident that the ofono.rules change is in its nicest
> possible form, and (IIUC) it's dependent on these earlier rules in
> /lib/udev/rules.d/55-openmoko-gta01-gta02.rules on my phone:
>
> # Samsung UARTS
> KERNEL=="s3c2410_serial[0-9]", NAME="ttySAC%n"
> KERNEL=="ttySAC[0-9]", NAME="ttySAC%n"
>
> Given that the actual udev DB entry, under 2.6.34, is:
>
> P: /devices/platform/s3c2440-uart.0/tty/ttySAC0
> N: ttySAC0
> S: char/204:64
> E: UDEV_LOG=3
> E: DEVPATH=/devices/platform/s3c2440-uart.0/tty/ttySAC0
> E: MAJOR=204
> E: MINOR=64
> E: DEVNAME=/dev/ttySAC0
> E: SUBSYSTEM=tty
> E: DEVLINKS=/dev/char/204:64
>
I think the better way would be to drop a udev rule directly into
/etc/udev.d or similar. The rule should be as simple as:
KERNEL=="ttySAC0", ENV{OFONO_DRIVER}="calypso"
Let me know if this works for you and I can add a comment in the calypso
plugin.
Reg
next prev parent reply other threads:[~2010-12-20 23:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-15 22:12 PATCH: Enable udev-based autodetection of calypso modem on Freerunner Neil Jerram
2010-12-20 23:39 ` Denis Kenzior [this message]
2010-12-21 12:01 ` Neil Jerram
2010-12-21 18:01 ` Denis Kenzior
2010-12-21 18:13 ` Marcel Holtmann
2010-12-21 18:16 ` Denis Kenzior
2010-12-21 19:05 ` Marcel Holtmann
2010-12-21 19:18 ` Denis Kenzior
2010-12-21 19:22 ` Marcel Holtmann
2010-12-21 19:33 ` Denis Kenzior
2010-12-21 21:34 ` Neil Jerram
2010-12-22 13:37 ` Marcel Holtmann
2010-12-23 12:02 ` Neil Jerram
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=4D0FE94B.1010502@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.