From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mario Limonciello Date: Fri, 31 Jul 2009 19:35:34 +0000 Subject: Re: [PATCH 2/2] hid2hci: when recovering from S3 use parent devpath Message-Id: <4A734786.6050303@dell.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------enig100A97B8001619A4A4E841A1" List-Id: References: <4A6E19FF.5070207@dell.com> In-Reply-To: <4A6E19FF.5070207@dell.com> To: linux-hotplug@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig100A97B8001619A4A4E841A1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Kay: Kay Sievers wrote: > On Tue, 2009-07-28 at 13:10 -0500, Mario Limonciello wrote: > That should work (in theory) with the current logic. I can do here: > > $ UDEV_LOG=3D7 extras/hid2hci/hid2hci -p /devices/pci0000:00/0000:00:1d= =2E7/usb2/2-1/2-1.4 --method=3Ddell --find-sibling-intf=3D01:01:00 > libudev: udev_device_new_from_syspath: device 0x60b0d0 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.4' > libudev: udev_device_new_from_syspath: device 0x60b3d0 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1' > libudev: udev_device_new_from_syspath: device 0x61c580 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1' > libudev: udev_device_new_from_syspath: device 0x61c580 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0' > libudev: udev_device_new_from_syspath: device 0x61c580 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.3' > libudev: udev_device_new_from_syspath: device 0x61c580 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.3/2-1.3:1.0' > libudev: udev_device_new_from_syspath: device 0x61c580 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.3/2-1.3:1.0' > libudev: udev_device_new_from_syspath: device 0x61c580 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.3/2-1.3:1.0' > libudev: udev_device_new_from_syspath: device 0x6205e0 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.3/2-1.3:1.1' > libudev: udev_device_new_from_syspath: device 0x6205e0 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.3/2-1.3:1.1' > libudev: udev_device_new_from_syspath: device 0x6205e0 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.4' > libudev: udev_device_new_from_syspath: device 0x6205e0 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.4/2-1.4:1.0' > libudev: udev_device_new_from_syspath: device 0x60c5a0 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.3/2-1.3:1.0' > libudev: udev_device_new_from_syspath: device 0x60c850 has devpath '/de= vices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.3' > libusb couldn't open USB device /dev/bus/usb/002/006: Permission denied= =2E > > Where /dev/bus/usb/002/006 belongs to "2-1.3", which has a matching > interface and is the sibling from "2-1.4". > > Can you try the same on the real hardware? > =20 Unfortunately I did try on real hardware, and it didn't work. That's what pre-empted my patch to try to use the parent's DEVPATH instead. The problem is that the device is already gone (and not in the udev database) by the time you call the command. --=20 Mario Limonciello *Dell | Linux Engineering* mario_limonciello@dell.com --------------enig100A97B8001619A4A4E841A1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpzR4YACgkQ2CrZjkA73YuykACeM8dJsza0yGAXDmLfoNnXs0xG EtAAn1lXLMdzfqmxHXHX7XPlEb4gcOlJ =iknz -----END PGP SIGNATURE----- --------------enig100A97B8001619A4A4E841A1--