Searched hist:bedbac5f66bfcf54d500967417aeaa4088f6eae0 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | f_mass_storage.c | diff bedbac5f66bfcf54d500967417aeaa4088f6eae0 Tue Sep 21 09:59:02 CDT 2021 Nikita Yushchenko <nikita.yoush@cogentembedded.com> usb: gadget: storage: add support for media larger than 2T
This adds support for READ_CAPACITY(16), READ(16) and WRITE(16) commands, and fixes READ_CAPACITY command to return 0xffffffff if media size does not fit in 32 bits.
This makes f_mass_storage to export a 16T disk array correctly.
Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/20210921145901.11952-1-nikita.yoush@cogentembedded.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|