public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Duncan Sands <baldrick@free.fr>
To: Joerg Pommnitz <pommnitz@yahoo.com>,
	linux-usb-users@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: Software based unplug of USB device?
Date: Mon, 3 May 2004 13:07:30 +0200	[thread overview]
Message-ID: <200405031307.30527.baldrick@free.fr> (raw)
In-Reply-To: <20040503102120.23966.qmail@web41314.mail.yahoo.com>

On Monday 03 May 2004 12:21, Joerg Pommnitz wrote:
> Hello listees,
> we are struggling with a 3rd party USB device. It comes with its own
> firmware and its own Linux USB serial drivers. Unfortunately the
> communication between the device and the user application seems to break
> down from time to time. This situation can easily be resolved by
> unplugging and then re-plugging the device. Unfortunately this requires
> manual intervention.
> While resolving the real issue would be the preferred way to deal with
> this problem, we would settle for a way to do a software unplug/re-plug.
> Can this be done at all? If so, is there a tool to do this?
>
> A detailed description of our environment:
> * Linux 2.4.21 with USB OHCI driver
> * Natsemi Geode integrated CPU/Chipset

This can be done in a number of ways:
(1) unload and reload the module driving the usb device.  This should disconnect
it from the device and reconnect it when reloaded.
(2) restart the hotplug system (this will disconnect and reconnect all devices).
(3) use usbfs: there is an ioctl to disconnect a kernel driver from a device,
and another to reconnect it.

I hope this helps,

Duncan.

  reply	other threads:[~2004-05-04  6:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-03 10:21 Software based unplug of USB device? Joerg Pommnitz
2004-05-03 11:07 ` Duncan Sands [this message]
2004-05-03 14:54 ` Greg KH
2004-05-03 18:10   ` Johannes Erdfelt

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=200405031307.30527.baldrick@free.fr \
    --to=baldrick@free.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-users@lists.sourceforge.net \
    --cc=pommnitz@yahoo.com \
    /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