All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Petr Kubánek" <petr@kubanek.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: How is /dev/bus/usb created - /dev/bus/usb lost during system
Date: Thu, 18 Mar 2010 10:03:52 +0000	[thread overview]
Message-ID: <1268906632.2820.3.camel@epsilon> (raw)
In-Reply-To: <1268875500.9683.64.camel@epsilon>

Hi,

no custom kernel - 2.6.26-18-server #59

What I found different running

udevadm test /bus/usb/devices/1-0:1.0

on watcher:

udevadm_test: UDEV_LOG=6
udevadm_test: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-0:1.0
udevadm_test: DEVTYPE=usb_interface
udevadm_test: DRIVER=hub
udevadm_test: DEVICE=/proc/bus/usb/001/001
udevadm_test: PRODUCT\x1d6b/2/206
udevadm_test: TYPE=9/0/0
udevadm_test: INTERFACE=9/0/0
udevadm_test: MODALIAS=usb:v1D6Bp0002d0206dc09dsc00dp00ic09isc00ip00
udevadm_test: ACTION­d
udevadm_test: SUBSYSTEM=usb
udevadm_test: run: 'socket:@/org/freedesktop/hal/udev_event'


on my laptop, running 2.6.31:

udevadm_test: UDEV_LOG=6
udevadm_test: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-0:1.0
udevadm_test: DEVTYPE=usb_interface
udevadm_test: DRIVER=hub
udevadm_test: PRODUCT\x1d6b/2/206
udevadm_test: TYPE=9/0/0
udevadm_test: INTERFACE=9/0/0
udevadm_test: MODALIAS=usb:v1D6Bp0002d0206dc09dsc00dp00ic09isc00ip00
udevadm_test: ACTION­d
udevadm_test: SUBSYSTEM=usb
udevadm_test: run: 'socket:@/org/freedesktop/hal/udev_event'


e.g. DEVICE is missing. /proc/bus/usb is empty on Watcher and missing on
my laptop (where lsusb works). Any ideas? I
checked /boot/config-2.6.28-18-server, and it does not have
SYSFS_DEPRECATED set.

Petr

Martin Pitt píše v Čt 18. 03. 2010 v 09:51 +0100:
> Hello Petr,
> 
> Petr Kubánek [2010-03-18  2:24 +0100]:
> > I lost /dev/bus/usb during remote system upgrade (Ubuntu 9.04 -> 9.10)
> > on Watcher telescope control computer (@Boyden observatory, South
> > Africa).
> > 
> > I do not see /dev/bus/usb, and lsusb does not show anything. It worked
> > before, USB devices are present in dmesg, so I think USB subsystem is
> > working properly.
> > 
> > To debug this it will help me to know how udev creates and
> > populates /dev/bus/usb - which rule(s) does this, how to debug what
> > might be wrong.
> 
> Those are just created by udev, there is no particular rule for it
> (it's using the kernel default name).
> 
> $ udevadm test /bus/usb/devices/1-8
> [...]
> udev_rules_apply_to_event: LINK 'char/189:2' /lib/udev/rules.d/50-udev-default.rules:4
> udev_rules_apply_to_event: MODE 0664 /lib/udev/rules.d/50-udev-default.rules:62
> udev_rules_apply_to_event: RUN 'socket:@/org/freedesktop/hal/udev_event' /lib/udev/rules.d/90-hal.rules:2
> udev_event_execute_rules: no node name set, will use kernel supplied name 'bus/usb/001/003'
> [...]
> udevadm_test: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8
> udevadm_test: DEVNAME=/dev/bus/usb/001/003
> [...]
> 
> My best guess is that you are running a custom kernel which perhaps
> has CONFIG_SYSFS_DEPRECATED_V2 set, or something similar? What does
> "uname -a" say?
> 
> Martin
> 



  parent reply	other threads:[~2010-03-18 10:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-18  1:24 How is /dev/bus/usb created - /dev/bus/usb lost during system Petr Kubánek
2010-03-18  2:48 ` Greg KH
2010-03-18  8:51 ` Martin Pitt
2010-03-18 10:03 ` Petr Kubánek [this message]
2010-03-18 10:21 ` Kay Sievers
2010-03-18 10:31 ` Petr Kubánek
2010-03-18 10:37 ` Martin Pitt
2010-03-18 10:41 ` Kay Sievers
2010-03-18 10:42 ` Petr Kubánek
2010-03-18 14:26 ` Petr Kubánek
2010-03-18 16:46 ` Scott James Remnant

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=1268906632.2820.3.camel@epsilon \
    --to=petr@kubanek.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.