From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCH v4 2/3] Add SIM900 detection support.
Date: Wed, 11 Jan 2012 15:54:15 +0100 [thread overview]
Message-ID: <1326293655.6454.236.camel@aeonflux> (raw)
In-Reply-To: <1326290343-21973-2-git-send-email-r.r.zaripov@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1523 bytes --]
Hi Renat,
> This allows for detection of SIM900 modem module in case of
> appropriate driver specified in udev rules.
>
> Example rule:
> KERNEL=="gsmtty3", ENV{OFONO_DRIVER}="sim900"
you could also use the 27.010 support that is included in oFono itself
and set it up from within the plugin. I assume you have a reason for
using N_GSM.
>
> ---
> plugins/udev.c | 15 +++++++++++++++
> 1 files changed, 15 insertions(+), 0 deletions(-)
>
> diff --git a/plugins/udev.c b/plugins/udev.c
> index d0673f7..f05af48 100644
> --- a/plugins/udev.c
> +++ b/plugins/udev.c
> @@ -193,6 +193,19 @@ static void add_nokiacdma(struct ofono_modem *modem,
> ofono_modem_register(modem);
> }
>
> +static void add_sim900(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_register(modem);
> +}
> +
> static void add_modem(struct udev_device *udev_device)
> {
> struct ofono_modem *modem;
> @@ -271,6 +284,8 @@ done:
> add_tc65(modem, udev_device);
> else if (g_strcmp0(driver, "nokiacdma") == 0)
> add_nokiacdma(modem, udev_device);
> + else if (g_strcmp0(driver, "sim900") == 0)
> + add_sim900(modem, udev_device);
> }
Something went wrong here. Spaces?
Regards
Marcel
next prev parent reply other threads:[~2012-01-11 14:54 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-26 13:38 [PATCH] SIMCOM SIM900 module support r.r.zaripov
2011-12-27 23:03 ` Denis Kenzior
2011-12-29 12:06 ` [PATCH v3 1/3] " r.r.zaripov
2011-12-28 15:54 ` Denis Kenzior
2012-01-11 13:59 ` [PATCH v4 " r.r.zaripov
2012-01-11 13:59 ` [PATCH v4 2/3] Add SIM900 detection support r.r.zaripov
2012-01-11 14:54 ` Marcel Holtmann [this message]
2012-01-12 10:11 ` Renat Zaripov
2012-01-11 13:59 ` [PATCH v4 3/3] Adding a short description for usage of SIM900 plugin r.r.zaripov
2012-01-11 14:52 ` [PATCH v4 1/3] SIMCOM SIM900 module support Marcel Holtmann
2012-01-11 11:21 ` Denis Kenzior
2012-01-11 15:24 ` Marcel Holtmann
2012-01-11 11:41 ` Denis Kenzior
2012-01-12 10:55 ` Renat Zaripov
2012-01-12 11:52 ` Marcel Holtmann
2012-01-12 12:32 ` [PATCH v5 1/4] This patch add support for SIM900 GSM module r.r.zaripov
2012-01-12 5:52 ` Denis Kenzior
2012-01-12 12:32 ` [PATCH v5 2/4] Add SIM900 detection support r.r.zaripov
2012-01-12 12:32 ` [PATCH v5 3/4] SIM900 driver usage documentation r.r.zaripov
2012-01-12 12:32 ` [PATCH v5 4/4] SIM900 vendor quirk r.r.zaripov
2011-12-29 12:06 ` [PATCH v3 2/3] Add SIM900 detection support r.r.zaripov
2011-12-29 12:06 ` [PATCH v3 3/3] SIM900 driver usage documentation r.r.zaripov
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=1326293655.6454.236.camel@aeonflux \
--to=marcel@holtmann.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox