]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: Add per-lun inquiry string
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 1 Aug 2016 15:04:19 +0000 (17:04 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 25 Aug 2016 09:13:13 +0000 (12:13 +0300)
commit6ac47090eef0c4358b04a974c4a5ac3d9bf44f79
tree2b2f8a6f6a25fc182a3f5042c00c8532d03f689e
parentf652191be3f6bc997bbaf9bd4e8ec6dc96f44433
usb: gadget: Add per-lun inquiry string

Introduce an attribute "inquiry_string" to the lun.

In some environments, e. g. BIOS boot menus, the inquiry string
is the only information about devices presented to the user. The
default string depends on the "cdrom" bit of the first lun as
well as the kernel version and allows no further customization.
So without access to the client it is not obvious which gadget is
active at a given point and what any of the available luns might
contain.

If "inquiry_string" is ignored or set to the empty string, the
old behavior is preserved.

Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_mass_storage.c
drivers/usb/gadget/function/f_mass_storage.h
drivers/usb/gadget/function/storage_common.c
drivers/usb/gadget/function/storage_common.h