mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: BAREBOX <barebox@lists.infradead.org>
Subject: [PATCH 0/2] USB: storage: add usbdisk alias for USB storage devices
Date: Tue, 30 Jun 2026 14:39:54 +0200	[thread overview]
Message-ID: <20260630-usb-disk-alias-v1-0-d23318bcb684@pengutronix.de> (raw)

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>




             reply	other threads:[~2026-06-30 12:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-30 12:39 Sascha Hauer [this message]
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

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=20260630-usb-disk-alias-v1-0-d23318bcb684@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