From: Sascha Hauer <s.hauer@pengutronix.de>
To: BAREBOX <barebox@lists.infradead.org>,
Sascha Hauer <s.hauer@pengutronix.de>
Subject: Re: [PATCH 00/13] USB: Make USB devices removable
Date: Wed, 02 Sep 2026 09:09:24 +0200 [thread overview]
Message-ID: <178833296427.265807.12649360474471802094.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20260831-usb-device-lifetime-v1-0-6adf4054b909@pengutronix.de>
On Mon, 31 Aug 2026 15:20:07 +0200, Sascha Hauer wrote:
> So far we assumed that USB devices are not disconnected during barebox
> lifetime, so we would only ever add to the list of devices. This series
> relaxes this assumption. USB storage devices can now be disconnected at
> runtime and the disk devices associated with them properly unregister
> and filesystems are unmounted. Accesses to files on dead devices are
> caught and return an error. Re-plugging USB storage devices works as
> well. We still don't detect changes to the USB topology automatically,
> but a subsequent "usb" command will bring the barebox topology up to
> date with the hardware state.
>
> [...]
Applied, thanks!
[01/13] usb: don't report device removal after the device name is gone
https://git.pengutronix.de/cgit/barebox/commit/?id=7a3a32e30619 (link may not be stable)
[02/13] fs: devfs: count an open partition as an open device
https://git.pengutronix.de/cgit/barebox/commit/?id=ab0c932dd010 (link may not be stable)
[03/13] block: propagate errors from blockdevice_unregister()
https://git.pengutronix.de/cgit/barebox/commit/?id=1edfb7837469 (link may not be stable)
[04/13] fs: add cdev_umount_all()
https://git.pengutronix.de/cgit/barebox/commit/?id=7a119d2b8b0d (link may not be stable)
[05/13] block: add blockdevice_unregister_removed()
https://git.pengutronix.de/cgit/barebox/commit/?id=98316b89f396 (link may not be stable)
[06/13] usb: storage: tear the disk down properly on disconnect
https://git.pengutronix.de/cgit/barebox/commit/?id=5c91d53ed7f0 (link may not be stable)
[07/13] usb: hub: cancel pending port scans of a removed device
https://git.pengutronix.de/cgit/barebox/commit/?id=d147d245288d (link may not be stable)
[08/13] usb: reuse the addresses of removed devices
https://git.pengutronix.de/cgit/barebox/commit/?id=c6f7d39f4130 (link may not be stable)
[09/13] usb: hub: detect disconnected devices
https://git.pengutronix.de/cgit/barebox/commit/?id=74a489a0b2c1 (link may not be stable)
[10/13] usb: don't keep a dangling root device on enumeration failure
https://git.pengutronix.de/cgit/barebox/commit/?id=b942752b6cac (link may not be stable)
[11/13] usb: hub: limit the number of ports to USB_MAXCHILDREN
https://git.pengutronix.de/cgit/barebox/commit/?id=03ec8992741f (link may not be stable)
[12/13] usb: detect unplugged devices on transfer errors
https://git.pengutronix.de/cgit/barebox/commit/?id=d0bbc92c2d4f (link may not be stable)
[13/13] usb: storage: stop talking to a device that is gone
https://git.pengutronix.de/cgit/barebox/commit/?id=d143876e10ba (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
prev parent reply other threads:[~2026-09-02 7:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 13:20 Sascha Hauer
2026-08-31 13:20 ` [PATCH 01/13] usb: don't report device removal after the device name is gone Sascha Hauer
2026-08-31 13:20 ` [PATCH 02/13] fs: devfs: count an open partition as an open device Sascha Hauer
2026-08-31 13:20 ` [PATCH 03/13] block: propagate errors from blockdevice_unregister() Sascha Hauer
2026-08-31 13:20 ` [PATCH 04/13] fs: add cdev_umount_all() Sascha Hauer
2026-08-31 13:20 ` [PATCH 05/13] block: add blockdevice_unregister_removed() Sascha Hauer
2026-08-31 13:20 ` [PATCH 06/13] usb: storage: tear the disk down properly on disconnect Sascha Hauer
2026-08-31 13:20 ` [PATCH 07/13] usb: hub: cancel pending port scans of a removed device Sascha Hauer
2026-08-31 13:20 ` [PATCH 08/13] usb: reuse the addresses of removed devices Sascha Hauer
2026-08-31 13:20 ` [PATCH 09/13] usb: hub: detect disconnected devices Sascha Hauer
2026-08-31 13:20 ` [PATCH 10/13] usb: don't keep a dangling root device on enumeration failure Sascha Hauer
2026-08-31 13:20 ` [PATCH 11/13] usb: hub: limit the number of ports to USB_MAXCHILDREN Sascha Hauer
2026-08-31 13:20 ` [PATCH 12/13] usb: detect unplugged devices on transfer errors Sascha Hauer
2026-08-31 13:20 ` [PATCH 13/13] usb: storage: stop talking to a device that is gone Sascha Hauer
2026-09-02 7:09 ` Sascha Hauer [this message]
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=178833296427.265807.12649360474471802094.b4-ty@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.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