[U-Boot] [PATCH v2 0/5] USB: UMS: code refactoring and usage improvement

Przemyslaw Marczak p.marczak at samsung.com
Wed Oct 23 14:30:41 CEST 2013


Quick summary:
- introduce board definable parameters: UMS_START_BLOCK and UMS_PART_SIZE
- remove ums unnecessary code
- move ums structures to just one generic ums structure
- add mmc device num as one of ums parameter
- fix ums capacity miscalculation
- move ums initialization code to Samsung common
- add function usb_cable_connected() which depends on CONFIG_USB_CABLE_CHECK
- add ums exit feature by ctrl+c or cable detachment

Thank you,
Przemyslaw Marczak

Przemyslaw Marczak (5):
  usb: ums: code refactoring to improve reusability on other boards.
  usb: ums: allows using every mmc device with ums.
  usb: ums: fix disk capacity miscalculation and code cleanup
  usb: ums: move ums code from trats to Samsung common directory
  usb: ums: add ums exit feature by ctrl+c or by detach usb cable

 README                              |    7 ++++
 board/samsung/common/Makefile       |    1 +
 board/samsung/common/ums.c          |   76 +++++++++++++++++++++++++++++++++++
 board/samsung/trats/trats.c         |   62 ----------------------------
 common/cmd_usb_mass_storage.c       |   51 +++++++++++------------
 drivers/usb/gadget/f_mass_storage.c |   67 +++++++++++++++++++-----------
 drivers/usb/gadget/storage_common.c |   27 ++-----------
 include/configs/trats.h             |    2 -
 include/usb.h                       |   10 +++++
 include/usb_mass_storage.h          |   33 +++++++--------
 10 files changed, 180 insertions(+), 156 deletions(-)
 create mode 100644 board/samsung/common/ums.c

-- 
1.7.9.5



More information about the U-Boot mailing list