[PATCH 0/9] Towards configfs in mass storage

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

 



The prerequisite for providing the configfs interface for mass storage and all
its users is converting them to the new function interface from Sebastian.

This patch series serves the purpose stated above.

The plan for the conversion is as follows:

- identify all users of mass storage (acm_ms, mass_storage, multi)
- get rid of #including the storage_common.c file by using separate compilation
- make f_mass_storage a separately compiled module with the new interface
	a) create a header file
	b) convert to the new function interface
	c) provide compatibility for the mass storage's users
- convert the users of mass storage one by one to the new interface
- remove the compatibility for old style mass storage users
- merge separately compiled object files storage_common.o and f_mass_storage.o
into one module (at this point there is no purpose in having a separate utiltiy
module)

The series depends on Sebastian's series found here:

http://www.spinics.net/lists/linux-usb/msg76378.html

@Sebastian: Felipe reports that there are problems with applying some of
the patches in your series. Are you willing to fix the problem?


Andrzej Pietrasiewicz (9):
  usb/gadget: create utility for mass_storage
  usb/gadget: allow not clearing the memory for struct fsg_common
  usb/gadget: create header file for f_mass_storage
  usb/gadget: convert f_mass_storage to new function interface with
    backward compatibility
  usb/gadget: convert acm_ms to new function interface
  usb/gadget: convert mass_storage to new function interface
  usb/gadget: convert multi to new function interface
  usb/gadget: remove compatibility layer for f_mass_storage
  usb/gadget: merge mass storage utility object with f_mass_storage
    object

 drivers/usb/gadget/Kconfig          |    6 +
 drivers/usb/gadget/Makefile         |    2 +
 drivers/usb/gadget/acm_ms.c         |   77 +++++----
 drivers/usb/gadget/f_mass_storage.c |  286 +++++++++++---------------------
 drivers/usb/gadget/f_mass_storage.h |  196 +++++++++++++++++++++
 drivers/usb/gadget/mass_storage.c   |  122 +++++++++-----
 drivers/usb/gadget/multi.c          |   68 ++++++--
 drivers/usb/gadget/storage_common.c |  317 ++++++-----------------------------
 drivers/usb/gadget/storage_common.h |  208 +++++++++++++++++++++++
 9 files changed, 735 insertions(+), 547 deletions(-)
 create mode 100644 drivers/usb/gadget/f_mass_storage.h
 create mode 100644 drivers/usb/gadget/storage_common.h

--
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