1. 26 11月, 2013 1 次提交
    • P
      usb: gadget: mass storage: fix return of delayed status · 655403c2
      Pratyush Anand 提交于
      Mass storage gadget returns DELAYED_STATUS in stead of
      USB_GADGET_DELAYED_STATUS while handling bulk reset request. Since
      peripheral driver uses USB_GADGET_DELAYED_STATUS for delayed status
      handling, therefore replace DELAYED_STATUS by USB_GADGET_DELAYED_STATUS
      in mass storage driver.
      
      Since, DELAYED_STATUS and hence EP0_BUFSIZE will no longer be used now,
      so remove them.
      Signed-off-by: NPratyush Anand <pratyush.anand@st.com>
      Cc: Paul Zimmerman <Paul.Zimmerman@synopsys.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      655403c2
  2. 15 10月, 2013 1 次提交
  3. 10 10月, 2013 3 次提交
  4. 01 10月, 2013 1 次提交
    • A
      usb: gadget: create a utility module for mass_storage · 6fdc5dd2
      Andrzej Pietrasiewicz 提交于
      Converting to configfs requires making the f_mass_storage.c a module.
      
      But first we need to get rid of "#include "storage_common.c".
      
      This patch makes storage_common.c a separately compiled file, which is
      built as a utility module named u_ms.ko. After all mass storage users are
      converted to the new function interface this module can be eliminated
      by merging it with the mass storage function's module.
      
      USB descriptors are exported so that they can be accessed from
      f_mass_storage.
      
      FSG_VENDOR_ID and FSG_PRODUCT_ID are moved to their only user.
      
      Handling of CONFIG_USB_GADGET_DEBUG_FILES is moved to f_mass_storage.c.
      The fsg_num_buffers static is moved to FSG_MODULE_PARAMETER users, so
      instead of using a global variable the f_mass_storage introduces
      fsg_num_buffers member in fsg_common (and fsg_config).
      
      fsg_strings and fsg_stringtab are moved to f_mass_storage.c.
      Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      6fdc5dd2