mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Maciej Rutecki <maciej.rutecki@gmail.com>
To: Oliver Neukum <oliver@neukum.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	linux-usb@vger.kernel.org
Subject: Re: [2.6.31-rc8] Problem with detect USB devices
Date: Wed, 2 Sep 2009 16:15:28 +0200	[thread overview]
Message-ID: <8db1092f0909020715g3e6f9815w96efc801cc18e3bc@mail.gmail.com> (raw)
In-Reply-To: <200909021542.11767.oliver@neukum.org>

2009/9/2 Oliver Neukum <oliver@neukum.org>:

> We have to find out where the event is lost. Please run
> "udevadm monitor" and tell us whether you see an event as
> you unplug your device.

Thanks for response.

1. Start monitor:
root@zlom:/home/maciek# udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

2. Connect device:
KERNEL[1251900238.630740] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1 (usb)
KERNEL[1251900238.631294] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0 (usb)
UDEV  [1251900238.635817] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1 (usb)
KERNEL[1251900238.658567] add      /module/usb_storage (module)
UDEV  [1251900238.659543] add      /module/usb_storage (module)
KERNEL[1251900238.660124] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4 (scsi)
KERNEL[1251900238.660161] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/scsi_host/host4
(scsi_host)
KERNEL[1251900238.660208] add      /bus/usb/drivers/usb-storage (drivers)
UDEV  [1251900238.664418] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0 (usb)
UDEV  [1251900238.666087] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4 (scsi)
UDEV  [1251900238.666997] add      /bus/usb/drivers/usb-storage (drivers)
UDEV  [1251900238.667274] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/scsi_host/host4
(scsi_host)
KERNEL[1251900243.666195] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0
(scsi)
KERNEL[1251900243.666298] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0
(scsi)
KERNEL[1251900243.666388] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0
(scsi_disk)
KERNEL[1251900243.666461] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0
(scsi_device)
KERNEL[1251900243.666564] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2
(scsi_generic)
UDEV  [1251900243.668787] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0
(scsi)
KERNEL[1251900243.669784] change
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0
(scsi)
UDEV  [1251900243.675609] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0
(scsi)
UDEV  [1251900243.675920] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0
(scsi_disk)
UDEV  [1251900243.679152] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0
(scsi_device)
UDEV  [1251900243.679597] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2
(scsi_generic)
UDEV  [1251900243.681201] change
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0
(scsi)
KERNEL[1251900243.780545] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb
(block)
KERNEL[1251900243.780596] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1
(block)
KERNEL[1251900243.780625] add      /devices/virtual/bdi/8:16 (bdi)
UDEV  [1251900243.784615] add      /devices/virtual/bdi/8:16 (bdi)
UDEV  [1251900243.955713] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb
(block)
UDEV  [1251900243.990627] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1
(block)

maciek@zlom:~$ lsusb
Bus 005 Device 003: ID 062a:0201 Creative Labs Defender Office
Keyboard (K7310) S Zodiak KM-9010
Bus 005 Device 002: ID 1020:0206 Labtec
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 3538:0054 Power Quotient International Co., Ltd
Flash Drive (2GB)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

3. Disconnect:
KERNEL[1251900287.925502] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2
(scsi_generic)
KERNEL[1251900287.925554] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0
(scsi_device)
KERNEL[1251900287.925604] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0
(scsi_disk)
KERNEL[1251900287.925680] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1
(block)
KERNEL[1251900287.925721] remove   /devices/virtual/bdi/8:16 (bdi)
KERNEL[1251900287.925819] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb
(block)
KERNEL[1251900287.925850] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0
(scsi)
KERNEL[1251900287.925893] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0
(scsi)
KERNEL[1251900287.925944] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/scsi_host/host4
(scsi_host)
KERNEL[1251900287.925994] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4 (scsi)
KERNEL[1251900287.926058] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0 (usb)
KERNEL[1251900287.926302] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1 (usb)
UDEV  [1251900287.927833] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0
(scsi_disk)
UDEV  [1251900287.928827] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2
(scsi_generic)
UDEV  [1251900287.929674] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0
(scsi_device)
UDEV  [1251900287.936095] remove
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1
(block)

maciek@zlom:~$ lsusb
Bus 005 Device 003: ID 062a:0201 Creative Labs Defender Office
Keyboard (K7310) S Zodiak KM-9010
Bus 005 Device 002: ID 1020:0206 Labtec
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

4. Connect again:

KERNEL[1251900489.897750] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1 (usb)
KERNEL[1251900489.897896] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0 (usb)
KERNEL[1251900489.898108] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host5 (scsi)
KERNEL[1251900489.898147] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host5/scsi_host/host5
(scsi_host)
KERNEL[1251900494.900911] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host5/target5:0:0
(scsi)
KERNEL[1251900494.900974] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host5/target5:0:0/5:0:0:0
(scsi)
KERNEL[1251900494.901005] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host5/target5:0:0/5:0:0:0/scsi_disk/5:0:0:0
(scsi_disk)
KERNEL[1251900494.901040] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host5/target5:0:0/5:0:0:0/scsi_device/5:0:0:0
(scsi_device)
KERNEL[1251900494.901074] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host5/target5:0:0/5:0:0:0/scsi_generic/sg2
(scsi_generic)
KERNEL[1251900494.904546] change
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host5/target5:0:0/5:0:0:0
(scsi)
KERNEL[1251900495.015049] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host5/target5:0:0/5:0:0:0/block/sdb
(block)
KERNEL[1251900495.015133] add
/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host5/target5:0:0/5:0:0:0/block/sdb/sdb1
(block)
KERNEL[1251900495.015237] add      /devices/virtual/bdi/8:16 (bdi)

maciek@zlom:~$ lsusb
Bus 005 Device 003: ID 062a:0201 Creative Labs Defender Office
Keyboard (K7310) S Zodiak KM-9010
Bus 005 Device 002: ID 1020:0206 Labtec
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

>
>        HTH
>                Oliver
>
>

Regards

-- 
Maciej Rutecki
http://www.maciek.unixy.pl

  reply	other threads:[~2009-09-02 14:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-02 13:29 Maciej Rutecki
2009-09-02 13:42 ` Oliver Neukum
2009-09-02 14:15   ` Maciej Rutecki [this message]
2009-09-03  7:07     ` Oliver Neukum
2009-09-03 16:05       ` Greg KH
2009-09-04 10:23         ` Oliver Neukum
2009-09-04 14:10           ` Maciej Rutecki
2009-09-04 18:30             ` Maciej Rutecki
2009-09-04 18:35               ` Eric Paris
2009-09-04 20:16                 ` Maciej Rutecki

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=8db1092f0909020715g3e6f9815w96efc801cc18e3bc@mail.gmail.com \
    --to=maciej.rutecki@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=oliver@neukum.org \
    --cc=torvalds@linux-foundation.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

all inboxes | Powered by JetHome®