From: Clayton Craft <clayton@craftyguy.net>
To: ofono@ofono.org
Subject: Re: [PATCH 1/1] udev: set driver for serial drivers
Date: Fri, 08 Sep 2017 08:25:31 -0700 [thread overview]
Message-ID: <20170908152531.GA3@computer.craftyguy.net> (raw)
In-Reply-To: <20170908080717.4441-1-jonas@southpole.se>
[-- Attachment #1: Type: text/plain, Size: 3510 bytes --]
Hi Jonas,
I applied the patch below after the first patch, looks like I inched
ahead a little further but something is still causing udevng to give
up and tear everything down (output clipped to include only changes
from the last attempt before this patch):
ofonod[10523]: plugins/udevng.c:udev_start()
ofonod[10523]: plugins/udevng.c:enumerate_devices()
ofonod[10523]: plugins/udevng.c:add_serial_device() Device is missing required OFONO_DRIVER property
ofonod[10523]: plugins/udevng.c:add_serial_device() Device is missing required OFONO_DRIVER property
ofonod[10523]: plugins/udevng.c:add_serial_device() /sys/devices/platform/68000000.ocp/48058000.ssi-controller/ssi0/port0/n900-modem
ofonod[10523]: plugins/udevng.c:add_serial_device() /devices/platform/68000000.ocp/48058000.ssi-controller/ssi0/port0/n900-modem
ofonod[10523]: plugins/udevng.c:add_serial_device() (null) (n900)
ofonod[10523]: plugins/udevng.c:add_serial_device() Device is missing required OFONO_DRIVER property
ofonod[10523]: plugins/udevng.c:add_serial_device() Device is missing required OFONO_DRIVER property
ofonod[10523]: plugins/udevng.c:add_serial_device() Device is missing required OFONO_DRIVER property
ofonod[10523]: plugins/udevng.c:add_serial_device() Device is missing required OFONO_DRIVER property
....
this repeats a lot
...
ofonod[10523]: plugins/udevng.c:add_serial_device() Device is missing required OFONO_DRIVER property
ofonod[10523]: plugins/udevng.c:add_serial_device() Device is missing required OFONO_DRIVER property
ofonod[10523]: plugins/udevng.c:add_serial_device() Device is missing required OFONO_DRIVER property
ofonod[10523]: plugins/udevng.c:create_modem() /sys/devices/platform/68000000.ocp/48058000.ssi-controller/ssi0/port0/n900-modem
ofonod[10523]: plugins/udevng.c:create_modem() driver=n900
ofonod[10523]: src/modem.c:ofono_modem_create() name: (null), type: n900
ofonod[10523]: plugins/udevng.c:destroy_modem() /sys/devices/platform/68000000.ocp/48058000.ssi-controller/ssi0/port0/n900-modem
ofonod[10523]: src/modem.c:ofono_modem_remove() 0x64f0b0
ofonod[10523]: src/private-network.c:ofono_private_network_driver_register() driver: 0x635334, name: Example Private Network Driver
-Clayton
On Fri, Sep 08, 2017 at 10:07:17AM +0200, Jonas Bonn wrote:
>The switch away from udev.c to udevng.c for serial modems ended up
>having a hardcoded driver "legacy" set on them. This breaks as the
>setup routine for the device will never be found this way. This patch
>sets the correct driver for the device.
>---
>Hi Clayton,
>
>Here's another patch that hopefully gets the N900 a bit further down
>the road to initialization. Apply this _on top of_ the earlier patch
>I sent you; they are both needed.
>
>Cheers,
>Jonas
>
> plugins/udevng.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/plugins/udevng.c b/plugins/udevng.c
>index 241fcda..5767259 100644
>--- a/plugins/udevng.c
>+++ b/plugins/udevng.c
>@@ -1335,7 +1335,7 @@ static void add_serial_device(struct udev_device *dev)
> modem->type = MODEM_TYPE_SERIAL;
> modem->syspath = g_strdup(syspath);
> modem->devname = g_strdup(devname);
>- modem->driver = g_strdup("legacy");
>+ modem->driver = g_strdup(driver);
>
> g_hash_table_replace(modem_list, modem->syspath, modem);
> }
>--
>2.9.3
>
>_______________________________________________
>ofono mailing list
>ofono(a)ofono.org
>https://lists.ofono.org/mailman/listinfo/ofono
prev parent reply other threads:[~2017-09-08 15:25 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-08 0:51 nokia-modem (N900) not detected after migration to udevng Clayton Craft
2017-09-08 1:13 ` Jonas Bonn
2017-09-08 1:17 ` Clayton Craft
2017-09-08 1:29 ` Jonas Bonn
2017-09-08 1:38 ` Clayton Craft
2017-09-08 2:12 ` Jonas Bonn
2017-09-09 3:09 ` Clayton Craft
2017-09-09 8:56 ` [PATCH 1/1] udev: add serial_info struct to modem Jonas Bonn
2017-09-09 9:05 ` Jonas Bonn
2017-09-09 17:40 ` Clayton Craft
2017-09-09 17:58 ` nokia-modem (N900) not detected after migration to udevng Clayton Craft
2017-09-09 18:29 ` Denis Kenzior
2017-09-09 18:43 ` Clayton Craft
2017-09-09 20:34 ` Clayton Craft
2017-09-10 16:41 ` [PATCH 1/1] isimodem: Use correct callback for pin status Clayton Craft
2017-09-10 17:47 ` Denis Kenzior
2017-09-10 18:41 ` Clayton Craft
2017-09-11 15:37 ` Denis Kenzior
2017-09-11 15:44 ` nokia-modem (N900) not detected after migration to udevng Clayton Craft
2017-09-11 18:49 ` Denis Kenzior
2017-09-11 19:54 ` Clayton Craft
2017-09-12 7:51 ` Jonas Bonn
2017-09-12 8:11 ` [PATCH 1/2] udev: fixes for detection of non-USB modems Jonas Bonn
2017-09-12 8:11 ` [PATCH 2/2] udev: isi modems do not use 'Device' property Jonas Bonn
2017-09-12 17:28 ` [PATCH 1/2] udev: fixes for detection of non-USB modems Denis Kenzior
2017-09-08 3:17 ` [PATCH 1/1] udev: devnode is not a required modem property Jonas Bonn
2017-09-08 6:06 ` Clayton Craft
2017-09-08 8:07 ` [PATCH 1/1] udev: set driver for serial drivers Jonas Bonn
2017-09-08 15:25 ` Clayton Craft [this message]
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=20170908152531.GA3@computer.craftyguy.net \
--to=clayton@craftyguy.net \
--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.