[PATCH v2 0/2] Fixes for mass_storage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A short series to fix 2 issues:

- use strtobool instead of kstrtouint with base 2 for: ro, nofua, cdrom, removable attrs
(better fits the context and more flexible to users)
- setting a lun to be cdrom implies read-only and succeeds only if the lun is not open


v1..v2:

- fixes after Michal's review; thanks Michal!
- added a comment for a function requiring a semaphore
- simplified error recovery paths in fsg_store_ro() and fsg_store_cdrom()

Andrzej Pietrasiewicz (2):
  usb/gadget: storage_common: use strtobool instead of kstrtouint
  usb/gadget: storage_common: pass filesem to fsg_store_cdrom

 drivers/usb/gadget/f_mass_storage.c |    7 +++-
 drivers/usb/gadget/storage_common.c |   58 +++++++++++++++++++++++-----------
 drivers/usb/gadget/storage_common.h |    3 +-
 3 files changed, 47 insertions(+), 21 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux