Skip to content

USB: storage: add usbdisk alias for USB storage devices

Sascha Hauer barebox 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20260630-usb-disk-alias-85022129192f

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2fs: devfs: make cdev_find_free_index() return 0 instead of an errordrivers/ata/disk_ata_drive.c drivers/hw_random/core.c drivers/usb/storage/usb.c +1 more+12 -150 replies
2/2usb: storage: add usbdisk alias for USB storage devicesdrivers/usb/storage/usb.c+12 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] USB: storage: add usbdisk alias for USB storage devices

This is an alternative approach for:

https://lore.kernel.org/p/[email protected]

Instead of adding a new Kconfig variable we add a /dev/usbdiskx alias for each USB storage device. This allows us to easily use the first USB storage device instead of stumbling upon other devices which are also registered as /dev/diskx.

---
Sascha Hauer (2):
fs: devfs: make cdev_find_free_index() return 0 instead of an error
usb: storage: add usbdisk alias for USB storage devices

 drivers/ata/disk_ata_drive.c |  2 --
 drivers/hw_random/core.c     | 13 +++----------
 drivers/usb/storage/usb.c    | 17 ++++++++++++-----
 fs/devfs-core.c              | 10 +++++++++-
 4 files changed, 24 insertions(+), 18 deletions(-)

---
base-commit: 18599acfcbf38e95edc605f89e257e32f67d0ac4
change-id: 20260630-usb-disk-alias-85022129192f

Best regards,

Signature · 1 line
Sascha Hauer <[email protected]>