1. 23 4月, 2013 5 次提交
  2. 04 4月, 2013 1 次提交
    • F
      usb: gadget: nokia: include f_ecm.c · 9b192de6
      Felipe Balbi 提交于
      recent changes to gadget framework have
      exposed a flaw in nokia.c where it uses
      f_ecm.c but it wasn't including it like
      other gadget drivers.
      
      This is a temporary patch until all other
      function drivers are converted to new API
      where each function driver becomes a module
      and binding is done through configfs.
      
      Solves a linking error when building g_nokia.ko
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      9b192de6
  3. 03 4月, 2013 29 次提交
  4. 02 4月, 2013 5 次提交
    • F
      usb: gadget: pxa27x_udc: fix Section Mismatches · 50757b24
      Felipe Balbi 提交于
      Remove all section annotations to fix the
      following section mismatches:
      
      >> WARNING: drivers/usb/gadget/pxa27x_udc.o(.text+0x597c): Section mismatch in
      reference from the function .pxa_udc_probe() to the function
      .init.text:.udc_init_data.constprop.11()
         The function .pxa_udc_probe() references
         the function __init .udc_init_data.constprop.11().
         This is often because .pxa_udc_probe lacks a __init
         annotation or the annotation of .udc_init_data.constprop.11 is wrong.
      --
      >> WARNING: drivers/usb/gadget/pxa27x_udc.o(.text+0x5a04): Section mismatch in
      reference from the function .pxa_udc_probe() to the function
      .init.text:.pxa_ep_setup()
         The function .pxa_udc_probe() references
         the function __init .pxa_ep_setup().
         This is often because .pxa_udc_probe lacks a __init
         annotation or the annotation of .pxa_ep_setup is wrong.
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      50757b24
    • F
      usb: gadget: udc-core: prevent a memory leak · c5dbc220
      Felipe Balbi 提交于
      udc-core would leak 'udc' memory in some error
      cases. Fix it by kfree()ing udc on error path.
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      c5dbc220
    • Y
      usb: gadget: fusb300_udc: bug fix of not doing idma reset for each time · 1cb5e9ee
      Yuan-Hsin Chen 提交于
      Enter IDMA_RESET only when the controller has been reset or
      the device has been plugged in to or out from a host. In
      IDMA_RESET, we should disable the corresponding PRD interrupt.
      Also there is a redundant space eliminated.
      
      fusb300_udc driver is tested on FARADAY platform a369 with
      FUSB300 FPGA v1.8
      Signed-off-by: NYuan-Hsin Chen <yhchen@faraday-tech.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      1cb5e9ee
    • Y
      usb: gadget: fusb300_udc: add FUSB300_EPSET0_STL_CLR for clearing EP0 stall · 9770a16f
      Yuan-Hsin Chen 提交于
      The final version of fusb300 controller adds EPSET0_STL_CLR
      for clearing EP0 stall and also removes EPSET0_EPn_TX0BYTE.
      
      fusb300_udc driver is tested on FARADAY platform a369 with
      FUSB300 FPGA v1.8
      Signed-off-by: NYuan-Hsin Chen <yhchen@faraday-tech.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      9770a16f
    • J
      usb: dwc3: add CONFIG_PM_SLEEP to suspend/resume functions · 19fda7cd
      Jingoo Han 提交于
      Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following
      build warning when CONFIG_PM_SLEEP is not selected. This is because
      sleep PM callbacks defined by SET_SYSTEM_SLEEP_PM_OPS are only used
      when the CONFIG_PM_SLEEP is enabled. Unnecessary CONFIG_PM ifdefs
      are removed.
      
      drivers/usb/dwc3/core.c:682:12: warning: 'dwc3_suspend' defined but not used [-Wunused-function]
      drivers/usb/dwc3/core.c:709:12: warning: 'dwc3_resume' defined but not used [-Wunused-function]
      drivers/usb/dwc3/dwc3-omap.c:430:12: warning: 'dwc3_omap_suspend' defined but not used [-Wunused-function]
      drivers/usb/dwc3/dwc3-omap.c:440:12: warning: 'dwc3_omap_resume' defined but not used [-Wunused-function]
      drivers/usb/dwc3/dwc3-exynos.c:185:12: warning: 'dwc3_exynos_suspend' defined but not used [-Wunused-function]
      drivers/usb/dwc3/dwc3-exynos.c:194:12: warning: 'dwc3_exynos_resume' defined but not used [-Wunused-function]
      Signed-off-by: NJingoo Han <jg1.han@samsung.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      19fda7cd