From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mario Limonciello Date: Tue, 28 Jul 2009 18:10:00 +0000 Subject: Re: [PATCH 2/2] hid2hci: when recovering from S3 use parent devpath Message-Id: <4A6F3EF8.4060204@dell.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------enig142917519D4620D371A022EB" 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) --------------enig142917519D4620D371A022EB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Kay: Kay Sievers wrote: > On Mon, Jul 27, 2009 at 23:19, Mario > Limonciello wrote: > =20 > > No, we can't do this. DEVPATH is the unique property of every device, > it can not be imported from a different device. > =20 OK. > What does: > ls -l /sys/bus/usb/devices/ > print, and which device is the one the remove event hooks into and > which one is the one that needs to be found? > =20 Here's that output: lrwxrwxrwx 1 root root 0 2009-07-28 12:35 1-0:1.0 -> ../../../devices/pci0000:00/0000:00:04.1/usb1/1-0:1.0 lrwxrwxrwx 1 root root 0 2009-07-28 12:35 2-0:1.0 -> ../../../devices/pci0000:00/0000:00:06.1/usb2/2-0:1.0 lrwxrwxrwx 1 root root 0 2009-07-28 12:35 2-3 -> ../../../devices/pci0000:00/0000:00:06.1/usb2/2-3 lrwxrwxrwx 1 root root 0 2009-07-28 12:35 2-3:1.0 -> ../../../devices/pci0000:00/0000:00:06.1/usb2/2-3/2-3:1.0 lrwxrwxrwx 1 root root 0 2009-07-28 12:35 2-3:1.1 -> ../../../devices/pci0000:00/0000:00:06.1/usb2/2-3/2-3:1.1 lrwxrwxrwx 1 root root 0 2009-07-28 12:35 3-0:1.0 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-0:1.0 lrwxrwxrwx 1 root root 0 2009-07-28 12:35 3-4 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-4 lrwxrwxrwx 1 root root 0 2009-07-28 12:36 3-4.1 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-4/3-4.1 lrwxrwxrwx 1 root root 0 2009-07-28 12:35 3-4:1.0 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-4/3-4:1.0 lrwxrwxrwx 1 root root 0 2009-07-28 12:36 3-4.1:1.0 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-4/3-4.1/3-4.1:1.0 lrwxrwxrwx 1 root root 0 2009-07-28 12:36 3-4.2 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-4/3-4.2 lrwxrwxrwx 1 root root 0 2009-07-28 12:36 3-4.2:1.0 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-4/3-4.2/3-4.2:1.0 lrwxrwxrwx 1 root root 0 2009-07-28 12:36 3-4.3 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-4/3-4.3 lrwxrwxrwx 1 root root 0 2009-07-28 12:36 3-4.3:1.0 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-4/3-4.3/3-4.3:1.0 lrwxrwxrwx 1 root root 0 2009-07-28 12:36 3-4.3:1.1 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-4/3-4.3/3-4.3:1.1 lrwxrwxrwx 1 root root 0 2009-07-28 12:36 3-4.3:1.2 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-4/3-4.3/3-4.3:1.2 lrwxrwxrwx 1 root root 0 2009-07-28 12:36 3-4.3:1.3 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-4/3-4.3/3-4.3:1.3 lrwxrwxrwx 1 root root 0 2009-07-28 12:35 4-0:1.0 -> ../../../devices/pci0000:00/0000:00:06.0/usb4/4-0:1.0 lrwxrwxrwx 1 root root 0 2009-07-28 12:35 usb1 -> ../../../devices/pci0000:00/0000:00:04.1/usb1 lrwxrwxrwx 1 root root 0 2009-07-28 12:35 usb2 -> ../../../devices/pci0000:00/0000:00:06.1/usb2 lrwxrwxrwx 1 root root 0 2009-07-28 12:35 usb3 -> ../../../devices/pci0000:00/0000:00:04.0/usb3 lrwxrwxrwx 1 root root 0 2009-07-28 12:35 usb4 -> ../../../devices/pci0000:00/0000:00:06.0/usb4 The device that is gone after S3 (the BT device), is: ../../../devices/pci0000:00/0000:00:04.0/usb3/3-4/3-4.3 The parent device that I was calling with in that patch to find the sibling was: ../../../devices/pci0000:00/0000:00:04.0/usb3/3-4 --=20 Mario Limonciello *Dell | Linux Engineering* mario_limonciello@dell.com --------------enig142917519D4620D371A022EB 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 iEYEARECAAYFAkpvPvgACgkQ2CrZjkA73Ytc8gCfWYfYOX6HtESw8BRrtUrrpYTN MSwAoI+DP0+0uA+7CYuh2rIGPGbSWhE9 =Ln1A -----END PGP SIGNATURE----- --------------enig142917519D4620D371A022EB--