linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Valentina Manea <valentina.manea.m@gmail.com>
To: linux-hotplug@vger.kernel.org
Subject: /dev entry of USB device not disappearing after detach
Date: Fri, 14 Feb 2014 17:35:31 +0000	[thread overview]
Message-ID: <CABdoFFfdXunfN+q1wJWGJbh9UGzD+9z9257ZXMM_qDhg3X8zTQ@mail.gmail.com> (raw)

Hello,

I am working on a driver for a virtual USB host controller. When I attach a USB
device, everything is fine - sysfs files are created, /dev entry is
created, device is usable.
However, when I detach it, the /dev entry still remains. The sysfs
files are removed, as expected. Obviously, the /dev entry is no longer
usable, e.g. it can't be used for mounting.

The output from udevmon is here [1]. vhci_hcd is the device representing the
USB hub and 2-1 is the bus ID of the attached device.

As far as I can tell, udevd receives the remove event but, for some
reason, the /dev entry still remains.

Any help is greatly appreciated.

Thanks,
Valentina

[1] http://pastebin.com/0M2pSGw1

             reply	other threads:[~2014-02-14 17:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14 17:35 Valentina Manea [this message]
2014-02-14 18:20 ` /dev entry of USB device not disappearing after detach Greg KH
2014-02-14 18:21 ` Greg KH
2014-02-15 12:38 ` Valentina Manea
2014-02-15 16:52 ` Greg KH

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=CABdoFFfdXunfN+q1wJWGJbh9UGzD+9z9257ZXMM_qDhg3X8zTQ@mail.gmail.com \
    --to=valentina.manea.m@gmail.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 read-only IMAP folder(s) and NNTP newsgroup(s).