mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] USB: storage: add usbdisk alias for USB storage devices
@ 2026-06-30 12:39 Sascha Hauer
  2026-06-30 12:39 ` [PATCH 1/2] fs: devfs: make cdev_find_free_index() return 0 instead of an error Sascha Hauer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sascha Hauer @ 2026-06-30 12:39 UTC (permalink / raw)
  To: BAREBOX

This is an alternative approach for:

https://lore.kernel.org/p/20260623142646.87173-1-chalianis1@gmail.com

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 <s.hauer@pengutronix.de>
---
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 <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-07  6:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-30 12:39 [PATCH 0/2] USB: storage: add usbdisk alias for USB storage devices Sascha Hauer
2026-06-30 12:39 ` [PATCH 1/2] fs: devfs: make cdev_find_free_index() return 0 instead of an error Sascha Hauer
2026-06-30 12:39 ` [PATCH 2/2] usb: storage: add usbdisk alias for USB storage devices Sascha Hauer
2026-07-07  6:47 ` [PATCH 0/2] USB: " Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox