1. 15 11月, 2014 1 次提交
    • D
      usb: dwc2: Move gadget probe function into platform code · 117777b2
      Dinh Nguyen 提交于
      This patch will aggregate the probing of gadget/hcd driver into platform.c.
      The gadget probe funtion is converted into gadget_init that is now only
      responsible for gadget only initialization. All the gadget resources are now
      handled by platform.c
      
      Since the host workqueue will not get initialized if the driver is configured
      for peripheral mode only. Thus we need to check for wq_otg before calling
      queue_work().
      
      Also, we move spin_lock_init to common location for both host and gadget that
      is either in platform.c or pci.c.
      
      We also move suspend/resume code to common platform code.
      
      Lastly, move the "samsung,s3c6400-hsotg" binding into dwc2_of_match_table.
      Signed-off-by: NDinh Nguyen <dinguyen@opensource.altera.com>
      Acked-by: NPaul Zimmerman <paulz@synopsys.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      117777b2
  2. 12 11月, 2014 1 次提交
  3. 20 9月, 2014 1 次提交
    • P
      usb: dwc2: handle DMA buffer unmapping sanely · 5dce9555
      Paul Zimmerman 提交于
      The driver's handling of DMA buffers for non-aligned transfers
      was kind of nuts. For IN transfers, it left the URB DMA buffer
      mapped until the transfer completed, then synced it, copied the
      data from the bounce buffer, then synced it again.
      
      Instead of that, just call usb_hcd_unmap_urb_for_dma() to unmap
      the buffer before starting the transfer. Then no syncing is
      required when doing the copy. This should also allow handling of
      other types of mappings besides just dma_map_single() ones.
      
      Also reduce the size of the bounce buffer allocation for Isoc
      endpoints to 3K, since that's the largest possible transfer size.
      
      Tested on Raspberry Pi and Altera SOCFPGA.
      Signed-off-by: NPaul Zimmerman <paulz@synopsys.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5dce9555
  4. 05 2月, 2014 1 次提交
  5. 14 1月, 2014 1 次提交
  6. 09 12月, 2013 2 次提交
  7. 04 12月, 2013 1 次提交
  8. 26 11月, 2013 1 次提交
  9. 29 10月, 2013 1 次提交
  10. 26 9月, 2013 2 次提交
  11. 31 8月, 2013 5 次提交
  12. 26 7月, 2013 1 次提交
  13. 24 7月, 2013 7 次提交
  14. 30 5月, 2013 2 次提交
  15. 17 5月, 2013 4 次提交
  16. 24 4月, 2013 2 次提交
  17. 13 4月, 2013 1 次提交
  18. 12 4月, 2013 3 次提交
  19. 11 4月, 2013 1 次提交
  20. 26 3月, 2013 2 次提交