1. 23 Apr, 2013 5 commits
  2. 03 Apr, 2013 30 commits
  3. 02 Apr, 2013 5 commits
    • Felipe Balbi's avatar
      usb: gadget: pxa27x_udc: fix Section Mismatches · 50757b24
      Felipe Balbi authored
      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: default avatarFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      50757b24
    • Felipe Balbi's avatar
      usb: gadget: udc-core: prevent a memory leak · c5dbc220
      Felipe Balbi authored
      udc-core would leak 'udc' memory in some error
      cases. Fix it by kfree()ing udc on error path.
      Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      c5dbc220
    • Yuan-Hsin Chen's avatar
      usb: gadget: fusb300_udc: bug fix of not doing idma reset for each time · 1cb5e9ee
      Yuan-Hsin Chen authored
      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: default avatarYuan-Hsin Chen <yhchen@faraday-tech.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      1cb5e9ee
    • Yuan-Hsin Chen's avatar
      usb: gadget: fusb300_udc: add FUSB300_EPSET0_STL_CLR for clearing EP0 stall · 9770a16f
      Yuan-Hsin Chen authored
      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: default avatarYuan-Hsin Chen <yhchen@faraday-tech.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      9770a16f
    • Jingoo Han's avatar
      usb: dwc3: add CONFIG_PM_SLEEP to suspend/resume functions · 19fda7cd
      Jingoo Han authored
      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: default avatarJingoo Han <jg1.han@samsung.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      19fda7cd