1. 03 4月, 2013 26 次提交
  2. 02 4月, 2013 14 次提交
    • 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
    • R
      usb: musb: gadget: read ep0 fifo only if rxcount is non zero · 538bf07d
      Ravi Babu 提交于
      avoid reading fifo rxcount is zero of fifo is empty, hence
      read fifo only if rxcount is non-zero
      Signed-off-by: NRavi Babu <ravibabu@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      538bf07d
    • R
      usb: musb: dsps: print babble message only when musb is active host · 96449f09
      Ravi Babu 提交于
      The musb controller uses single bit defintion for both reset and
      babble events. The babble event is valid only when controller is
      active a-host, and hence print the babble message only when the
      controller is active a-host.
      Signed-off-by: NRavi Babu <ravibabu@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      96449f09
    • R
      usb: musb: implement (un)map_urb_for_dma hooks · 8408fd1d
      Ruslan Bilovol 提交于
      MUSB controller cannot work in DMA mode with misaligned buffers,
      switching in PIO mode.
      
      HCD core has hooks that allow to override the default DMA
      mapping and unmapping routines for host controllers that have
      special DMA requirements, such as alignment constraints.
      
      It is observed that work in PIO mode is slow and it's better
      to align buffers properly before passing them to MUSB
      
      This increased throughput 80->120 MBits/s over musb@omap4 with
      USB Gigabit Ethernet adapter attached.
      
      Some ideas are taken from ehci-tegra.c
      Signed-off-by: NRuslan Bilovol <ruslan.bilovol@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      8408fd1d
    • B
      usb: gadget/uvc: Add support for 'get_unmapped_area' for MMUless architectures · 2f1d5706
      Bhupesh Sharma 提交于
      This patch adds the support for 'get_unmapped_area' in UVC gadget
      which is called when the 'mmap' system call is executed on MMUless
      architectures.
      Signed-off-by: NBhupesh Sharma <bhupesh.sharma@st.com>
      Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      2f1d5706
    • B
      usb: gadget/uvc: Port UVC webcam gadget to use videobuf2 framework · d6925225
      Bhupesh Sharma 提交于
      This patch reworks the videobuffer management logic present in the UVC
      webcam gadget and ports it to use the "more apt" videobuf2 framework for
      video buffer management.
      
      To support routing video data captured from a real V4L2 video capture
      device with a "zero copy" operation on videobuffers (as they pass from
      the V4L2 domain to UVC domain via a user-space application), we need to
      support USER_PTR IO method at the UVC gadget side.
      
      So the V4L2 capture device driver can still continue to use MMAP IO
      method and now the user-space application can just pass a pointer to the
      video buffers being dequeued from the V4L2 device side while queueing
      them at the UVC gadget end. This ensures that we have a "zero-copy"
      design as the videobuffers pass from the V4L2 capture device to the UVC
      gadget.
      
      Note that there will still be a need to apply UVC specific payload
      headers on top of each UVC payload data, which will still require a copy
      operation to be performed in the 'encode' routines of the UVC gadget.
      
      This patch also addresses one issue found out while porting the UVC
      gadget to videobuf2 framework:
      	- In case the usb requests queued by the gadget get completed
      	  with a status of -ESHUTDOWN (disconnected from host),
      	  the queue of videobuf2 should be cancelled to ensure that the
      	  application space daemon is not left in a state waiting for
      	  a vb2 to be successfully absorbed at the USB side.
      Signed-off-by: NBhupesh Sharma <bhupesh.sharma@st.com>
      Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      d6925225
    • K
      usb: renesas_usbhs: fixup sparse errors for common.c · 225da3e3
      Kuninori Morimoto 提交于
      This patch fixup below sparse errors
      
      CHECK   ${RENESAS_USB}/common.c
      ${RENESAS_USB}/common.c:313:17: error: incompatible types in conditional expression (different base types)
      ${RENESAS_USB}/common.c:322:17: error: incompatible types in conditional expression (different base types)
      ${RENESAS_USB}/common.c:384:17: error: incompatible types in conditional expression (different base types)
      ${RENESAS_USB}/common.c:524:9: error: incompatible types in conditional expression (different base types)
      ${RENESAS_USB}/common.c:545:9: error: incompatible types in conditional expression (different base types)
      ${RENESAS_USB}/common.c:574:9: error: incompatible types in conditional expression (different base types)
      ${RENESAS_USB}/common.c:606:9: error: incompatible types in conditional expression (different base types)
      ${RENESAS_USB}/mod_gadget.c:233:28: warning: symbol 'req_clear_feature' was not declared. Should it be static?
      ${RENESAS_USB}/mod_gadget.c:274:28: warning: symbol 'req_set_feature' was not declared. Should it be static?
      ${RENESAS_USB}/mod_gadget.c:375:28: warning: symbol 'req_get_status' was not declared. Should it be static?
      
      [ balbi@ti.com : added three sparse fixes to mod_gadget.c ]
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      225da3e3
    • C
      usb: mv_usb: remove clock name from pdata · ef096542
      Chao Xie 提交于
      Using pdata to pass clock name is not correct.
      Directly get clock from usb drivers.
      Signed-off-by: NChao Xie <chao.xie@marvell.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      ef096542
    • F
      usb: gadget: mv_u3d_core: remove unused clock · 65cd3f2b
      Felipe Balbi 提交于
      The origianl understanding of clock is wrong. The UDC controller
      only have one clock input.
      Passing clock name by pdata is wrong. The clock is defined by device
      iteself.
      
      Cc: Chao Xie <chao.xie@marvell.com>
      Cc: Yu Xu <yuxu@marvell.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      65cd3f2b
    • C
      arm: mmp: remove clock name from usb pdata for ttc · 1805e811
      Chao Xie 提交于
      The clock name will directly get by driver. Removing
      the name from pdata.
      Acked-by: NHaojian Zhuang <haojian.zhuang@gmail.com>
      Signed-off-by: NChao Xie <chao.xie@marvell.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      1805e811