* Re: Udev detection broken?
2011-09-14 22:01 Udev detection broken? Artem Makhutov
@ 2011-09-08 8:49 ` Denis Kenzior
2011-09-15 18:03 ` Artem Makhutov
2011-09-15 7:48 ` Artem Makhutov
1 sibling, 1 reply; 6+ messages in thread
From: Denis Kenzior @ 2011-09-08 8:49 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 359 bytes --]
Hi Artem,
On 09/14/2011 05:01 PM, Artem Makhutov wrote:
> Hello,
>
> I am trying to setup ofono on my PC again, unfortunatly ofono does not
> pick up the connected huawei modem.
>
> I have traced it down to plugins/udev.c - get_property function.
>
Please note that huawei detection is now being done by plugins/udevng.c.
Regards,
-Denis
^ permalink raw reply [flat|nested] 6+ messages in thread
* Udev detection broken?
@ 2011-09-14 22:01 Artem Makhutov
2011-09-08 8:49 ` Denis Kenzior
2011-09-15 7:48 ` Artem Makhutov
0 siblings, 2 replies; 6+ messages in thread
From: Artem Makhutov @ 2011-09-14 22:01 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 2038 bytes --]
Hello,
I am trying to setup ofono on my PC again, unfortunatly ofono does not pick up the connected huawei modem.
I have traced it down to plugins/udev.c - get_property function.
The udev rules seems to get ok, as I can see it in the udev logs:
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3
SUBSYSTEM=usb
DEVNAME=/dev/bus/usb/001/016
DEVTYPE=usb_device
DEVICE=/proc/bus/usb/001/016
PRODUCT=12d1/1001/0
TYPE=0/0/0
BUSNUM=001
DEVNUM=016
SEQNUM=9847
ID_VENDOR=HUAWEI_Technology
ID_VENDOR_ENC=HUAWEI\x20Technology
ID_VENDOR_ID=12d1
ID_MODEL=HUAWEI_Mobile
ID_MODEL_ENC=HUAWEI\x20Mobile
ID_MODEL_ID=1001
ID_REVISION=0000
ID_SERIAL=HUAWEI_Technology_HUAWEI_Mobile
ID_BUS=usb
ID_USB_INTERFACES=:ffffff:
OFONO_DRIVER=huawei
MAJOR=189
MINOR=15
But get_property can not find the "OFONO_DRIVER" property.
It only find the properties below:
Sep 14 23:45:56 gandalf ofonod[19789]: plugins/udev.c:get_property() Name:UDEV_LOG
Sep 14 23:45:56 gandalf ofonod[19789]: plugins/udev.c:get_property() Name:DEVPATH
Sep 14 23:45:56 gandalf ofonod[19789]: plugins/udev.c:get_property() Name:MAJOR
Sep 14 23:45:56 gandalf ofonod[19789]: plugins/udev.c:get_property() Name:MINOR
Sep 14 23:45:56 gandalf ofonod[19789]: plugins/udev.c:get_property() Name:DEVNAME
Sep 14 23:45:56 gandalf ofonod[19789]: plugins/udev.c:get_property() Name:DEVTYPE
Sep 14 23:45:56 gandalf ofonod[19789]: plugins/udev.c:get_property() Name:DRIVER
Sep 14 23:45:56 gandalf ofonod[19789]: plugins/udev.c:get_property() Name:DEVICE
Sep 14 23:45:56 gandalf ofonod[19789]: plugins/udev.c:get_property() Name:PRODUCT
Sep 14 23:45:56 gandalf ofonod[19789]: plugins/udev.c:get_property() Name:TYPE
Sep 14 23:45:56 gandalf ofonod[19789]: plugins/udev.c:get_property() Name:BUSNUM
Sep 14 23:45:56 gandalf ofonod[19789]: plugins/udev.c:get_property() Name:DEVNUM
Sep 14 23:45:56 gandalf ofonod[19789]: plugins/udev.c:get_property() Name:SUBSYSTEM
Any ideas why it does not find some properties?
Thanks, Artem
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4364 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Udev detection broken?
2011-09-14 22:01 Udev detection broken? Artem Makhutov
2011-09-08 8:49 ` Denis Kenzior
@ 2011-09-15 7:48 ` Artem Makhutov
2011-09-15 14:33 ` Paolo Pellegrino
1 sibling, 1 reply; 6+ messages in thread
From: Artem Makhutov @ 2011-09-15 7:48 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 618 bytes --]
Hi,
Artem Makhutov schrieb:
> Hello,
>
> I am trying to setup ofono on my PC again, unfortunatly ofono does not pick up the connected huawei modem.
> [...]
I have done some more testing. Looks like the "OFONO_DRIVER=huawei" is getting removed somehow by udev.
With "udevadm monitor --property" I can see that OFONO_DRIVER=huawei was set for /devices/pci0000:00/0000:00:02.1/usb1/1-3
But "udevadm info --query=all --path=/devices/pci0000:00/0000:00:02.1/usb1/1-3" does not show it.
Ofono also can't find it.
Any ideas that to do to trace down the problem?
Some logs are attached.
Thanks, Artem
[-- Attachment #2: env.txt --]
[-- Type: text/plain, Size: 422 bytes --]
gandalf ~ # udevadm info --query=all --path=/devices/pci0000:00/0000:00:02.1/usb1/1-3
P: /devices/pci0000:00/0000:00:02.1/usb1/1-3
N: bus/usb/001/003
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3
E: MAJOR=189
E: MINOR=2
E: DEVNAME=/dev/bus/usb/001/003
E: DEVTYPE=usb_device
E: DRIVER=usb
E: DEVICE=/proc/bus/usb/001/003
E: PRODUCT=12d1/1001/0
E: TYPE=0/0/0
E: BUSNUM=001
E: DEVNUM=003
E: SUBSYSTEM=usb
[-- Attachment #3: ofono.log --]
[-- Type: text/plain, Size: 975 bytes --]
ofonod[5682]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:02.1/usb1/1-3
ofonod[5682]: plugins/udev.c:get_property() Name:UDEV_LOG - 3
ofonod[5682]: plugins/udev.c:get_property() Name:DEVPATH - /devices/pci0000:00/0000:00:02.1/usb1/1-3
ofonod[5682]: plugins/udev.c:get_property() Name:MAJOR - 189
ofonod[5682]: plugins/udev.c:get_property() Name:MINOR - 2
ofonod[5682]: plugins/udev.c:get_property() Name:DEVNAME - bus/usb/001/003
ofonod[5682]: plugins/udev.c:get_property() Name:DEVTYPE - usb_device
ofonod[5682]: plugins/udev.c:get_property() Name:DRIVER - usb
ofonod[5682]: plugins/udev.c:get_property() Name:DEVICE - /proc/bus/usb/001/003
ofonod[5682]: plugins/udev.c:get_property() Name:PRODUCT - 12d1/1001/0
ofonod[5682]: plugins/udev.c:get_property() Name:TYPE - 0/0/0
ofonod[5682]: plugins/udev.c:get_property() Name:BUSNUM - 001
ofonod[5682]: plugins/udev.c:get_property() Name:DEVNUM - 003
ofonod[5682]: plugins/udev.c:get_property() Name:SUBSYSTEM - usb
[-- Attachment #4: udevadm.txt --]
[-- Type: text/plain, Size: 8617 bytes --]
gandalf ~ # udevadm monitor --property
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[1316072387.248612] add /devices/pci0000:00/0000:00:02.1/usb1/1-3 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3
SUBSYSTEM=usb
DEVNAME=bus/usb/001/003
DEVTYPE=usb_device
DEVICE=/proc/bus/usb/001/003
PRODUCT=12d1/1001/0
TYPE=0/0/0
BUSNUM=001
DEVNUM=003
SEQNUM=2496
MAJOR=189
MINOR=2
KERNEL[1316072387.250047] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0
SUBSYSTEM=usb
DEVTYPE=usb_interface
DEVICE=/proc/bus/usb/001/003
PRODUCT=12d1/1001/0
TYPE=0/0/0
INTERFACE=255/255/255
MODALIAS=usb:v12D1p1001d0000dc00dsc00dp00icFFiscFFipFF
SEQNUM=2497
KERNEL[1316072387.250143] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0/ttyUSB0 (usb-serial)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0/ttyUSB0
SUBSYSTEM=usb-serial
SEQNUM=2498
KERNEL[1316072387.250259] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0/ttyUSB0/tty/ttyUSB0 (tty)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0/ttyUSB0/tty/ttyUSB0
SUBSYSTEM=tty
DEVNAME=ttyUSB0
SEQNUM=2499
MAJOR=188
MINOR=0
KERNEL[1316072387.250305] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.1 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.1
SUBSYSTEM=usb
DEVTYPE=usb_interface
DEVICE=/proc/bus/usb/001/003
PRODUCT=12d1/1001/0
TYPE=0/0/0
INTERFACE=255/255/255
MODALIAS=usb:v12D1p1001d0000dc00dsc00dp00icFFiscFFipFF
SEQNUM=2500
KERNEL[1316072387.250451] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.1/ttyUSB1 (usb-serial)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.1/ttyUSB1
SUBSYSTEM=usb-serial
SEQNUM=2501
KERNEL[1316072387.250522] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.1/ttyUSB1/tty/ttyUSB1 (tty)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.1/ttyUSB1/tty/ttyUSB1
SUBSYSTEM=tty
DEVNAME=ttyUSB1
SEQNUM=2502
MAJOR=188
MINOR=1
KERNEL[1316072387.250600] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2
SUBSYSTEM=usb
DEVTYPE=usb_interface
DEVICE=/proc/bus/usb/001/003
PRODUCT=12d1/1001/0
TYPE=0/0/0
INTERFACE=255/255/255
MODALIAS=usb:v12D1p1001d0000dc00dsc00dp00icFFiscFFipFF
SEQNUM=2503
KERNEL[1316072387.250682] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2/ttyUSB2 (usb-serial)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2/ttyUSB2
SUBSYSTEM=usb-serial
SEQNUM=2504
KERNEL[1316072387.250737] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2/ttyUSB2/tty/ttyUSB2 (tty)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2/ttyUSB2/tty/ttyUSB2
SUBSYSTEM=tty
DEVNAME=ttyUSB2
SEQNUM=2505
MAJOR=188
MINOR=2
KERNEL[1316072387.250805] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/usb_device/usbdev1.3 (usb_device)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/usb_device/usbdev1.3
SUBSYSTEM=usb_device
DEVNAME=usbdev1.3
SEQNUM=2506
MAJOR=189
MINOR=2
UDEV [1316072387.264152] add /devices/pci0000:00/0000:00:02.1/usb1/1-3 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3
SUBSYSTEM=usb
DEVNAME=/dev/bus/usb/001/003
DEVTYPE=usb_device
DEVICE=/proc/bus/usb/001/003
PRODUCT=12d1/1001/0
TYPE=0/0/0
BUSNUM=001
DEVNUM=003
SEQNUM=2496
ID_VENDOR=HUAWEI_Technology
ID_VENDOR_ENC=HUAWEI\x20Technology
ID_VENDOR_ID=12d1
ID_MODEL=HUAWEI_Mobile
ID_MODEL_ENC=HUAWEI\x20Mobile
ID_MODEL_ID=1001
ID_REVISION=0000
ID_SERIAL=HUAWEI_Technology_HUAWEI_Mobile
ID_BUS=usb
ID_USB_INTERFACES=:ffffff:
OFONO_DRIVER=huawei
MAJOR=189
MINOR=2
UDEV [1316072387.264331] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0
SUBSYSTEM=usb
DEVTYPE=usb_interface
DEVICE=/proc/bus/usb/001/003
PRODUCT=12d1/1001/0
TYPE=0/0/0
INTERFACE=255/255/255
MODALIAS=usb:v12D1p1001d0000dc00dsc00dp00icFFiscFFipFF
SEQNUM=2497
UDEV [1316072387.264423] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.1 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.1
SUBSYSTEM=usb
DEVTYPE=usb_interface
DEVICE=/proc/bus/usb/001/003
PRODUCT=12d1/1001/0
TYPE=0/0/0
INTERFACE=255/255/255
MODALIAS=usb:v12D1p1001d0000dc00dsc00dp00icFFiscFFipFF
SEQNUM=2500
UDEV [1316072387.265276] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0/ttyUSB0 (usb-serial)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0/ttyUSB0
SUBSYSTEM=usb-serial
SEQNUM=2498
UDEV [1316072387.265343] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.1/ttyUSB1 (usb-serial)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.1/ttyUSB1
SUBSYSTEM=usb-serial
SEQNUM=2501
UDEV [1316072387.265407] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2
SUBSYSTEM=usb
DEVTYPE=usb_interface
DEVICE=/proc/bus/usb/001/003
PRODUCT=12d1/1001/0
TYPE=0/0/0
INTERFACE=255/255/255
MODALIAS=usb:v12D1p1001d0000dc00dsc00dp00icFFiscFFipFF
SEQNUM=2503
UDEV [1316072387.265485] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2/ttyUSB2 (usb-serial)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2/ttyUSB2
SUBSYSTEM=usb-serial
SEQNUM=2504
UDEV [1316072387.274275] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/usb_device/usbdev1.3 (usb_device)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/usb_device/usbdev1.3
SUBSYSTEM=usb_device
DEVNAME=/dev/usbdev1.3
SEQNUM=2506
MAJOR=189
MINOR=2
UDEV [1316072387.302043] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.1/ttyUSB1/tty/ttyUSB1 (tty)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.1/ttyUSB1/tty/ttyUSB1
SUBSYSTEM=tty
DEVNAME=/dev/ttyUSB1
SEQNUM=2502
ID_PORT=0
ID_PATH=pci-0000:00:02.1-usb-0:3:1.1
ID_VENDOR=HUAWEI_Technology
ID_VENDOR_ENC=HUAWEI\x20Technology
ID_VENDOR_ID=12d1
ID_MODEL=HUAWEI_Mobile
ID_MODEL_ENC=HUAWEI\x20Mobile
ID_MODEL_ID=1001
ID_REVISION=0000
ID_SERIAL=HUAWEI_Technology_HUAWEI_Mobile
ID_TYPE=generic
ID_BUS=usb
ID_USB_INTERFACES=:ffffff:
ID_USB_INTERFACE_NUM=01
ID_USB_DRIVER=option
ID_IFACE=01
ID_VENDOR_FROM_DATABASE=Huawei Technologies Co., Ltd.
ID_MODEL_FROM_DATABASE=E620 USB Modem
MAJOR=188
MINOR=1
DEVLINKS=/dev/serial/by-path/pci-0000:00:02.1-usb-0:3:1.1-port0 /dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if01-port0
UDEV [1316072387.302301] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2/ttyUSB2/tty/ttyUSB2 (tty)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.2/ttyUSB2/tty/ttyUSB2
SUBSYSTEM=tty
DEVNAME=/dev/ttyUSB2
SEQNUM=2505
ID_PORT=0
ID_PATH=pci-0000:00:02.1-usb-0:3:1.2
ID_VENDOR=HUAWEI_Technology
ID_VENDOR_ENC=HUAWEI\x20Technology
ID_VENDOR_ID=12d1
ID_MODEL=HUAWEI_Mobile
ID_MODEL_ENC=HUAWEI\x20Mobile
ID_MODEL_ID=1001
ID_REVISION=0000
ID_SERIAL=HUAWEI_Technology_HUAWEI_Mobile
ID_TYPE=generic
ID_BUS=usb
ID_USB_INTERFACES=:ffffff:
ID_USB_INTERFACE_NUM=02
ID_USB_DRIVER=option
ID_IFACE=02
ID_VENDOR_FROM_DATABASE=Huawei Technologies Co., Ltd.
ID_MODEL_FROM_DATABASE=E620 USB Modem
OFONO_HUAWEI_TYPE=Pcui
MAJOR=188
MINOR=2
DEVLINKS=/dev/serial/by-path/pci-0000:00:02.1-usb-0:3:1.2-port0 /dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if02-port0
UDEV [1316072387.305689] add /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0/ttyUSB0/tty/ttyUSB0 (tty)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0/ttyUSB0/tty/ttyUSB0
SUBSYSTEM=tty
DEVNAME=/dev/ttyUSB0
SEQNUM=2499
ID_PORT=0
ID_PATH=pci-0000:00:02.1-usb-0:3:1.0
ID_VENDOR=HUAWEI_Technology
ID_VENDOR_ENC=HUAWEI\x20Technology
ID_VENDOR_ID=12d1
ID_MODEL=HUAWEI_Mobile
ID_MODEL_ENC=HUAWEI\x20Mobile
ID_MODEL_ID=1001
ID_REVISION=0000
ID_SERIAL=HUAWEI_Technology_HUAWEI_Mobile
ID_TYPE=generic
ID_BUS=usb
ID_USB_INTERFACES=:ffffff:
ID_USB_INTERFACE_NUM=00
ID_USB_DRIVER=option
ID_IFACE=00
ID_VENDOR_FROM_DATABASE=Huawei Technologies Co., Ltd.
ID_MODEL_FROM_DATABASE=E620 USB Modem
OFONO_HUAWEI_TYPE=Modem
MAJOR=188
MINOR=0
DEVLINKS=/dev/serial/by-path/pci-0000:00:02.1-usb-0:3:1.0-port0 /dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if00-port0
[-- Attachment #5: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4364 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Udev detection broken?
2011-09-15 7:48 ` Artem Makhutov
@ 2011-09-15 14:33 ` Paolo Pellegrino
2011-09-15 18:24 ` Artem Makhutov
0 siblings, 1 reply; 6+ messages in thread
From: Paolo Pellegrino @ 2011-09-15 14:33 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 2304 bytes --]
Hi Artem,
Il 15/09/2011 9.48, Artem Makhutov ha scritto:
> Hi,
>
> Artem Makhutov schrieb:
>> Hello,
>>
>> I am trying to setup ofono on my PC again, unfortunatly ofono
>> does not pick up the connected huawei modem. [...]
>
> I have done some more testing. Looks like the "OFONO_DRIVER=huawei"
> is getting removed somehow by udev.
>
> With "udevadm monitor --property" I can see that
> OFONO_DRIVER=huawei was set for
> /devices/pci0000:00/0000:00:02.1/usb1/1-3 But "udevadm info
> --query=all --path=/devices/pci0000:00/0000:00:02.1/usb1/1-3" does
> not show it. Ofono also can't find it.
>
> Any ideas that to do to trace down the problem?
We incurred in a similar problem some months ago, but we thought the
issue was related to some specific udev library version we were using
(v153 if I remember well).
Here is a patch we applied to ofono.rules to fix the problem, maybe it
will solve your issue, too:
@@ -0,0 +1,25 @@
+diff --git a/plugins/ofono.rules b/plugins/ofono.rules
+index 5a36380..bff8102 100644
+--- a/plugins/ofono.rules
++++ b/plugins/ofono.rules
+@@ -362,8 +362,18 @@ KERNEL=="shrm0", ENV{OFONO_DRIVER}="u8500"
+
+ LABEL="ofono_isi_end"
+
+-SUBSYSTEM!="usb", GOTO="ofono_end"
+-ENV{DEVTYPE}!="usb_device", GOTO="ofono_end"
++# Possibly unmatched rules if CONFIG_USB_DEVICE_CLASS=y
++# (deprecated config option)
++# See http://permalink.gmane.org/gmane.linux.lfs.devel/5791
++SUBSYSTEM!="usb", GOTO="test_usb_device"
++ENV{DEVTYPE}!="usb_device", GOTO="test_usb_device"
++GOTO="set_ofono_driver"
++
++LABEL="test_usb_device"
++# Workaround in case the above rules do not match
++SUBSYSTEM!="usb_device", GOTO="ofono_end"
++
++LABEL="set_ofono_driver"
+
+ # Novatel Wireless
+ ATTRS{idVendor}=="1410", ENV{OFONO_DRIVER}="novatel"
Very likely it can be rewritten in some cleaner way.
It just falls back to checking usb_device as SUBSYSTEM in addition to
what it checks now (i.e., usb as SUBSYSTEM or usb_device as ENV{DEVTYPE}).
Also current checks could probably be removed as related to some
deprecated kernel configurations, but we left there for compatibility
reasons (they appear to be harmless after all).
Hope this patch may help! :)
> Some logs are attached.
>
> Thanks, Artem
Regards,
Paolo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Udev detection broken?
2011-09-08 8:49 ` Denis Kenzior
@ 2011-09-15 18:03 ` Artem Makhutov
0 siblings, 0 replies; 6+ messages in thread
From: Artem Makhutov @ 2011-09-15 18:03 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]
Hi,
Denis Kenzior schrieb:
> Hi Artem,
>
> On 09/14/2011 05:01 PM, Artem Makhutov wrote:
>> Hello,
>>
>> I am trying to setup ofono on my PC again, unfortunatly ofono does not
>> pick up the connected huawei modem.
>>
>> I have traced it down to plugins/udev.c - get_property function.
>>
>
> Please note that huawei detection is now being done by plugins/udevng.c.
Thanks, this is good to know.
Regards, Artem
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4364 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Udev detection broken?
2011-09-15 14:33 ` Paolo Pellegrino
@ 2011-09-15 18:24 ` Artem Makhutov
0 siblings, 0 replies; 6+ messages in thread
From: Artem Makhutov @ 2011-09-15 18:24 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1010 bytes --]
Hello Paolo,
Paolo Pellegrino schrieb:
> Hi Artem,
>
> Il 15/09/2011 9.48, Artem Makhutov ha scritto:
>> Hi,
>>
>> Artem Makhutov schrieb:
>>> Hello,
>>>
>>> I am trying to setup ofono on my PC again, unfortunatly ofono
>>> does not pick up the connected huawei modem. [...]
>>
>> I have done some more testing. Looks like the "OFONO_DRIVER=huawei"
>> is getting removed somehow by udev.
>>
>> With "udevadm monitor --property" I can see that
>> OFONO_DRIVER=huawei was set for
>> /devices/pci0000:00/0000:00:02.1/usb1/1-3 But "udevadm info
>> --query=all --path=/devices/pci0000:00/0000:00:02.1/usb1/1-3" does
>> not show it. Ofono also can't find it.
>>
>> Any ideas that to do to trace down the problem?
>
> We incurred in a similar problem some months ago, but we thought the
> issue was related to some specific udev library version we were using
> (v153 if I remember well).
> [...]
Yes this patch solved it. I am using udev 171-r2 on gentoo linux.
Thank you, Artem
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4364 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-09-15 18:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-14 22:01 Udev detection broken? Artem Makhutov
2011-09-08 8:49 ` Denis Kenzior
2011-09-15 18:03 ` Artem Makhutov
2011-09-15 7:48 ` Artem Makhutov
2011-09-15 14:33 ` Paolo Pellegrino
2011-09-15 18:24 ` Artem Makhutov
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.