From: Mario Limonciello <mario_limonciello@dell.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH 2/2] hid2hci: when recovering from S3 use parent devpath
Date: Tue, 28 Jul 2009 18:10:00 +0000 [thread overview]
Message-ID: <4A6F3EF8.4060204@dell.com> (raw)
In-Reply-To: <4A6E19FF.5070207@dell.com>
[-- Attachment #1: Type: text/plain, Size: 3419 bytes --]
Hi Kay:
Kay Sievers wrote:
> On Mon, Jul 27, 2009 at 23:19, Mario
> Limonciello<mario_limonciello@dell.com> wrote:
>
>
> No, we can't do this. DEVPATH is the unique property of every device,
> it can not be imported from a different device.
>
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?
>
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
--
Mario Limonciello
*Dell | Linux Engineering*
mario_limonciello@dell.com
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
next prev parent reply other threads:[~2009-07-28 18:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-27 21:19 [PATCH 2/2] hid2hci: when recovering from S3 use parent devpath Mario Limonciello
2009-07-27 21:35 ` Marcel Holtmann
2009-07-27 22:36 ` Mario Limonciello
2009-07-27 22:42 ` Marcel Holtmann
2009-07-28 0:04 ` Kay Sievers
2009-07-28 18:10 ` Mario Limonciello [this message]
2009-07-31 18:53 ` Kay Sievers
2009-07-31 19:35 ` Mario Limonciello
2009-08-05 7:47 ` Kay Sievers
2009-08-06 22:03 ` Mario Limonciello
2009-08-07 0:27 ` Kay Sievers
2009-08-07 0:44 ` Marcel Holtmann
2009-08-07 0:57 ` Kay Sievers
2009-08-07 1:28 ` Marco d'Itri
2009-08-07 1:47 ` Kay Sievers
2009-08-07 3:48 ` Marco d'Itri
2009-08-11 17:49 ` Karl O. Pinc
2009-08-11 22:22 ` Marcel Holtmann
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=4A6F3EF8.4060204@dell.com \
--to=mario_limonciello@dell.com \
--cc=linux-hotplug@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).