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

Przemyslaw Marczak p.marczak at samsung.com
Wed Oct 16 15:21:10 CEST 2013


Hello,
Please look at my little ums refactor.

Quick summary:
- move ums initialization code to Samsung common
- introduce board definable parameters: UMS_START_BLOCK and UMS_PART_SIZE
- remove ums unnecessary code
- move ums structures to just one generic ums structure
- fix ums capacity miscalculation
- 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 (4):
  usb: ums: move ums code from trats to Samsung common directory
  usb: ums: code refactoring to improve reusability at other boards.
  usb: ums: fix bug in partition capacity computation.
  usb: ums: add ums exit feature by ctrl+c or by detach usb cable

 board/samsung/common/Makefile       |    1 +
 board/samsung/common/ums.c          |   75 +++++++++++++++++++++++++++++++++++
 board/samsung/trats/trats.c         |   62 -----------------------------
 common/cmd_usb_mass_storage.c       |   48 +++++++++++-----------
 drivers/usb/gadget/f_mass_storage.c |   50 +++++++++++++++--------
 drivers/usb/gadget/storage_common.c |    3 +-
 include/configs/trats.h             |    2 -
 include/usb.h                       |   10 +++++
 include/usb_mass_storage.h          |   33 ++++++++-------
 9 files changed, 163 insertions(+), 121 deletions(-)
 create mode 100644 board/samsung/common/ums.c

-- 
1.7.9.5



More information about the U-Boot mailing list