1. 04 3月, 2013 1 次提交
  2. 22 1月, 2013 4 次提交
    • S
      usb: gadget: f_acm: convert to new function interface with backwards compatibility · ff47f594
      Sebastian Andrzej Siewior 提交于
      This patch converts f_acm into a module which uses the new function
      interface. It also converts one of its users that is g_serial to make
      use of it. The other users of it (g_nokia for instance) are still using
      the old include file system and should not notice the change at all. So
      they can be converter later independently.
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      ff47f594
    • S
      usb: gadget: u_serial: convert into a module · 3249ca22
      Sebastian Andrzej Siewior 提交于
      Every user of u_serial has now to select the U_SERIAL symbol instead of
      including the file.
      There is one limition with this: ports and and gs_tty_driver are global
      variables in u_serial. Since all users share them, there can be only one
      user loaded at a time i.e. either g_serial or g_nokia.
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      3249ca22
    • S
      usb: gadget: convert source sink and loopback to new function interface · cf9a08ae
      Sebastian Andrzej Siewior 提交于
      This patch converts the f_sourcesink and f_loopback file to the USB-function
      module. Both functions shares a few common utility functions which are
      currently implemented in g_zero.c itself. This patch moves the common
      code into the sourcesink file and creates one module out of the the two
      functions (source sink and loop back).
      The g_zero gadget is function specific to source sink and loop back to
      set a few options. This Symbol dependency enforces a modul load right
      now.
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      cf9a08ae
    • S
      usb: gadget: add some infracture to register/unregister functions · de53c254
      Sebastian Andrzej Siewior 提交于
      This patch provides an infrastructure to register & unregister a USB
      function. This allows to turn a function into a module and avoid the
      '#include "f_.*.c"' magic and we get a clear API / cut between the bare
      gadget and its functions.
      The concept is simple:
      Each function defines the DECLARE_USB_FUNCTION_INIT macro whith an unique
      name of the function and two allocation functions.
      - one to create an "instance". The instance holds the current configuration
        set. In case there are two usb_configudations with one function there will
        be one instance and two usb_functions
      - one to create an "function" from the instance.
      
      The name of the instance is used to automaticaly load the module if it the
      instance is not yet available.
      The usb_function callbacks are slightly modified and extended:
      - usb_get_function()
        creates a struct usb_function inclunding all pointers (bind,
        unbind,…). It uses the "instance" to map its configuration. So we can
        have _two_ struct usb_function, one for each usb_configuration.
      - ->unbind()
        Since the struct usb_function was not allocated in ->bind() it should
        not kfree()d here. This function should only reverse what happens in
        ->bind() that is request cleanup and the cleanup of allocated
        descriptors.
      - ->free_func()
        a simple kfree() of the struct usb_function
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      de53c254
  3. 08 11月, 2012 1 次提交
  4. 10 9月, 2012 6 次提交
  5. 05 9月, 2012 1 次提交
  6. 22 6月, 2012 1 次提交
  7. 12 5月, 2012 2 次提交
  8. 10 5月, 2012 2 次提交
  9. 02 5月, 2012 1 次提交
  10. 20 12月, 2011 1 次提交
  11. 14 10月, 2011 2 次提交
    • K
      usb: gadget: add new usb gadget for ACM and mass storage · fa3ae0c1
      Klaus Schwarzkopf 提交于
      This driver provides two functions in one configuration:
      a mass storage, and a ACM (serial port) link.
      Heavily based on multi.c and cdc2.c
      Signed-off-by: NKlaus Schwarzkopf <schwarzkopf@sensortherm.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      fa3ae0c1
    • N
      usb: gadget: mv_udc: refine the driver structure · dde34cc5
      Neil Zhang 提交于
      This patch do the following things:
      
      1. Add header and Copyright for marvell usb driver.
      2. Add mv_usb.h in include/linux/platform_data, make the driver
         fits all the marvell platform using the same ChipIdea usb ip.
      3. Some SOC may has mutiple clock sources, so let me define it
         in mv_usb_platform_data and give two helper functions named
         udc_clock_enable/udc_clock_disable to deal with the clocks.
      4. Different SOCs will have some difference in PHY initialization,
         so we will remove file mv_udc_phy.c and add two funtions in
         mv_usb_platform_data, let the platform relative driver to realize it.
      5. Rewrite probe function according to the modification list above. Find
         it will kernel panic when probe failed. The root cause is as follows:
      	When probe failed, the error handle may call device_unregister()
      	which in return will call gadget_release.In current code,
      	gadget_release have two issues:
      		1: the_controller is a NULL pointer.
      		2: if we free udc here, then the following code in probe
      		   will access NULL pointer.
      Signed-off-by: NNeil Zhang <zhangwm@marvell.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      dde34cc5
  12. 29 6月, 2011 1 次提交
    • S
      usb: gadget: convert all users to the new udc infrastructure · 0f91349b
      Sebastian Andrzej Siewior 提交于
      peripheral drivers are using usb_add_gadget()/usb_del_gadget() to
      register/unregister to the udc-core.
      
      The udc-core will take the first available gadget driver and attach
      function driver which is calling usb_gadget_register_driver(). This is
      the same behaviour we have right now.
      
      Only dummy_hcd was tested, the others were compiled tested.
      
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Anton Tikhomirov <av.tikhomirov@samsung.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Cc: Dan Carpenter <error27@gmail.com>
      Cc: Darius Augulis <augulis.darius@gmail.com>
      Cc: Eric Miao <eric.y.miao@gmail.com>
      Cc: Jingoo Han <jg1.han@samsung.com>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Cc: Li Yang <leoli@freescale.com>
      Cc: Michael Hennerich <michael.hennerich@analog.com>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
      Cc: Pavankumar Kondeti <pkondeti@codeaurora.org>
      Cc: Roy Huang <roy.huang@analog.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com>
      Cc: Xiaochen Shen <xiaochen.shen@intel.com>
      Cc: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
      Cc: Yuan-Hsin Chen <yhchen@faraday-tech.com>
      Cc: cxie4 <cxie4@marvell.com>
      Cc: linux-geode@lists.infradead.org
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      0f91349b
  13. 07 6月, 2011 1 次提交
  14. 11 5月, 2011 1 次提交
  15. 25 1月, 2011 1 次提交
  16. 23 1月, 2011 1 次提交
  17. 11 12月, 2010 3 次提交
  18. 01 12月, 2010 1 次提交
    • C
      USB: pxa: Add USB client support for Marvell PXA9xx/PXA168 chips · e7cddda4
      cxie4 提交于
      This patch add USB client support Marvell PXA9xx/PXA168 chips. The USB
      controller in PXA9xx/PXA168 is a High-Speed OTG controller. The available
      endpoints is different between PXA9xx and PXA168.
      
      NOTE:
      It is the first version of Marvell PXA9xx/PXA168 USB controller driver.
      The support for OTG mode will be added in later patch.
      PXA9xx and PXA168 has integrated UTMI PHY in the chips. The initialization
      for the PHY is a little different between PXA9xx and PXA168.
      Signed-off-by: NChao Xie <chao.xie@marvell.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e7cddda4
  19. 17 11月, 2010 1 次提交
  20. 23 10月, 2010 2 次提交
  21. 11 8月, 2010 2 次提交
  22. 21 5月, 2010 4 次提交