Linux USB
 help / color / mirror / Atom feed
From: "Michał Pecio" <michal.pecio@gmail.com>
To: linux-usb@vger.kernel.org
Subject: Forcing re-enumeration of a chosen USB device from userspace?
Date: Thu, 8 Aug 2024 08:39:21 +0200	[thread overview]
Message-ID: <20240808083921.0400af26@foxbook> (raw)

Hi,

I have a buggy USB device which works fine if connected before booting
Linux and also starts to work if I unbind and rebind the XHCI driver.

On the other hand, hot plugging the device with the driver already
running usually results in invalid descriptors being returned and
sometimes even if the descriptors are right, the device still doesn't
function entirely normally. I suspect a race between initialization of
its internal state and enumeration by the host, nothing I can fix.

Rebinding XHCI driver forces new enumeration of the device and reliably
fixes all issues every time, but it has the obvious downside of also
resetting everything else on this bus.

Can I have the same effect selectively, for one chosen device only?

Thanks,
Michal

             reply	other threads:[~2024-08-08  6:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-08  6:39 Michał Pecio [this message]
2024-08-08 19:54 ` Forcing re-enumeration of a chosen USB device from userspace? Alan Stern
2024-08-09  9:02   ` Michał Pecio
2024-08-09 13:53     ` Alan Stern

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=20240808083921.0400af26@foxbook \
    --to=michal.pecio@gmail.com \
    --cc=linux-usb@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