[PATCH 0/2] USB: storage: add usbdisk alias for USB storage devices
Sascha Hauer <[email protected]> Tue, 30 Jun 2026 14:39:54 +0200
| Newsgroups | org.infradead.lists.barebox |
|---|---|
| Message-ID | <[email protected]> |
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. Signed-off-by: Sascha Hauer <[email protected]> --- 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, -- Sascha Hauer <[email protected]>