1. 26 5月, 2015 4 次提交
  2. 22 5月, 2015 3 次提交
  3. 08 5月, 2015 4 次提交
    • A
      usb: gadget: rndis: remove the limit of available rndis connections · d6d22922
      Andrzej Pietrasiewicz 提交于
      RNDIS function has a limitation on the number of allowed instances.
      So far it has been RNDIS_MAX_CONFIGS, which happens to be one.
      In order to eliminate this kind of arbitrary limitation we should not
      preallocate a predefined (RNDIS_MAX_CONFIGS) array of struct rndis_params
      instances but instead allow allocating them on demand.
      
      This patch allocates struct rndis_params on demand in rndis_register().
      Coversly, the structure is free()'d in rndis_deregister().
      If CONFIG_USB_GADGET_DEBUG_FILES is set, the proc files are created which
      is the same behaviour as before, but the moment of creation is delayed
      until struct rndis_params is actually allocated.
      
      rnids_init() and rndis_exit() have nothing to do, so they are eliminated.
      Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      d6d22922
    • A
      usb: gadget: rndis: style correction · 6122b151
      Andrzej Pietrasiewicz 提交于
      Don't use a space between function name and parameter list opening bracket.
      All other functions in this file comply wich checkpatch rules.
      Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      6122b151
    • A
      usb: gadget: rndis: use rndis_params instead of configNr · 83210e59
      Andrzej Pietrasiewicz 提交于
      RNDIS function has a limitation on the number of allowed instances.
      So far it has been RNDIS_MAX_CONFIGS, which happens to be one.
      In order to eliminate this kind of arbitrary limitation we should not
      preallocate a predefined (RNDIS_MAX_CONFIGS) array of struct rndis_params
      instances but instead allow allocating them on demand.
      
      This patch prepares the elimination of the said limit by converting all the
      functions which accept rndis config number to accept a pointer to the
      actual struct rndis_params. Consequently, rndis_register() returns
      a pointer to a corresponding struct rndis_params instance. The pointer
      is then always used by f_rndis.c instead of config number when it talks
      to rndis.c API.
      
      A nice side-effect of the changes is that many lines of code in rndis.c
      become shorter and fit in 80 columns.
      
      If a function prototype changes in rndis.h a style cleanup is made
      at the same time, otherwise checkpatch complains that the patch
      has style problems.
      Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      83210e59
    • J
      usb: gadget: s3c2410_udc: Remove static char buffer, use vsprintf extension %pV · d74c23d3
      Joe Perches 提交于
      Using unnecessary static char buffers isn't good.
      Use the %pV extension instead.
      
      Miscellanea:
      
      o the dprintk return value is unused, make it void
      o add __printf format and argument verification
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      d74c23d3
  4. 28 4月, 2015 1 次提交
  5. 16 4月, 2015 1 次提交
  6. 15 4月, 2015 1 次提交
    • C
      target: simplify the target template registration API · 9ac8928e
      Christoph Hellwig 提交于
      Instead of calling target_fabric_configfs_init() +
      target_fabric_configfs_register() / target_fabric_configfs_deregister()
      target_fabric_configfs_free() from every target driver, rewrite the API
      so that we have simple register/unregister functions that operate on
      a const operations vector.
      
      This patch also fixes a memory leak in several target drivers. Several
      target drivers namely called target_fabric_configfs_deregister()
      without calling target_fabric_configfs_free().
      
      A large part of this patch is based on earlier changes from
      Bart Van Assche <bart.vanassche@sandisk.com>.
      
      (v2: Add a new TF_CIT_SETUP_DRV macro so that the core configfs code
      can declare attributes as either core only or for drivers)
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      9ac8928e
  7. 12 4月, 2015 1 次提交
  8. 04 4月, 2015 1 次提交
  9. 03 4月, 2015 1 次提交
  10. 26 3月, 2015 1 次提交
  11. 25 3月, 2015 1 次提交
  12. 20 3月, 2015 6 次提交
  13. 19 3月, 2015 1 次提交
  14. 18 3月, 2015 1 次提交
  15. 14 3月, 2015 1 次提交
    • C
      fs: split generic and aio kiocb · 04b2fa9f
      Christoph Hellwig 提交于
      Most callers in the kernel want to perform synchronous file I/O, but
      still have to bloat the stack with a full struct kiocb.  Split out
      the parts needed in filesystem code from those in the aio code, and
      only allocate those needed to pass down argument on the stack.  The
      aio code embedds the generic iocb in the one it allocates and can
      easily get back to it by using container_of.
      
      Also add a ->ki_complete method to struct kiocb, this is used to call
      into the aio code and thus removes the dependency on aio for filesystems
      impementing asynchronous operations.  It will also allow other callers
      to substitute their own completion callback.
      
      We also add a new ->ki_flags field to work around the nasty layering
      violation recently introduced in commit 5e33f6 ("usb: gadget: ffs: add
      eventfd notification about ffs events").
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      04b2fa9f
  16. 13 3月, 2015 4 次提交
  17. 12 3月, 2015 1 次提交
  18. 11 3月, 2015 7 次提交