* [PATCH v4, 5/5] udev: Add nokiacdma device
@ 2011-01-04 1:50 Dara Spieker-Doyle
2011-01-10 22:35 ` Denis Kenzior
0 siblings, 1 reply; 3+ messages in thread
From: Dara Spieker-Doyle @ 2011-01-04 1:50 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1116 bytes --]
---
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);
+ 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)
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v4, 5/5] udev: Add nokiacdma device
2011-01-04 1:50 [PATCH v4, 5/5] udev: Add nokiacdma device Dara Spieker-Doyle
@ 2011-01-10 22:35 ` Denis Kenzior
2011-01-10 23:10 ` Dara Spieker-Doyle
0 siblings, 1 reply; 3+ messages in thread
From: Denis Kenzior @ 2011-01-10 22:35 UTC (permalink / raw)
To: ofono
[-- 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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH v4, 5/5] udev: Add nokiacdma device
2011-01-10 22:35 ` Denis Kenzior
@ 2011-01-10 23:10 ` Dara Spieker-Doyle
0 siblings, 0 replies; 3+ messages in thread
From: Dara Spieker-Doyle @ 2011-01-10 23:10 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1240 bytes --]
Hi Denis
On 01/10/2011 02:35 PM, ext Denis Kenzior wrote:
> 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?
>
Ergh sorry, yes this is an oversight and should have been cleaned out
with the other integration relics. I'll remove it with the patch rebase.
This device is PPP only.
Thanks
Dara
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-10 23:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-04 1:50 [PATCH v4, 5/5] udev: Add nokiacdma device Dara Spieker-Doyle
2011-01-10 22:35 ` Denis Kenzior
2011-01-10 23:10 ` Dara Spieker-Doyle
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.