From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH v4, 5/5] udev: Add nokiacdma device
Date: Mon, 10 Jan 2011 16:35:19 -0600 [thread overview]
Message-ID: <4D2B89A7.1020603@gmail.com> (raw)
In-Reply-To: <1294105817-23397-6-git-send-email-dara.spieker-doyle@nokia.com>
[-- Attachment #1: Type: text/plain, Size: 1453 bytes --]
Hi Dara,
On 01/03/2011 07:50 PM, Dara Spieker-Doyle wrote:
> ---
> plugins/udev.c | 16 ++++++++++++++++
> 1 files changed, 16 insertions(+), 0 deletions(-)
>
> diff --git a/plugins/udev.c b/plugins/udev.c
> index 6a59b06..12402eb 100644
> --- a/plugins/udev.c
> +++ b/plugins/udev.c
> @@ -462,6 +462,20 @@ static void add_calypso(struct ofono_modem *modem,
> ofono_modem_register(modem);
> }
>
> +static void add_nokiacdma(struct ofono_modem *modem,
> + struct udev_device *udev_device)
> +{
> + const char *devnode;
> +
> + DBG("modem %p", modem);
> +
> + devnode = udev_device_get_devnode(udev_device);
> +
> + ofono_modem_set_string(modem, "Device", devnode);
> + ofono_modem_set_integer(modem, "Registered", 1);
Since you told me that your modem only has a single AT command port, you
don't really need this Registered part here. Does this device support
high speed USB network access or PPP only?
> + ofono_modem_register(modem);
> +}
> +
> static void add_modem(struct udev_device *udev_device)
> {
> struct ofono_modem *modem;
> @@ -548,6 +562,8 @@ done:
> add_isi(modem, udev_device);
> else if (g_strcmp0(driver, "calypso") == 0)
> add_calypso(modem, udev_device);
> + else if (g_strcmp0(driver, "nokiacdma") == 0)
> + add_nokiacdma(modem, udev_device);
> }
>
> static gboolean devpath_remove(gpointer key, gpointer value, gpointer user_data)
Regards,
-Denis
next prev parent reply other threads:[~2011-01-10 22:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-04 1:50 [PATCH v4, 5/5] udev: Add nokiacdma device Dara Spieker-Doyle
2011-01-10 22:35 ` Denis Kenzior [this message]
2011-01-10 23:10 ` Dara Spieker-Doyle
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=4D2B89A7.1020603@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.