Re: [PATCH 2/2] hid2hci: when recovering from S3 use parent devpath

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Kay:

Kay Sievers wrote:
> On Mon, Jul 27, 2009 at 23:19, Mario
> Limonciello<mario_limonciello@xxxxxxxx> 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@xxxxxxxx

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux