1. 10 4月, 2015 1 次提交
  2. 08 4月, 2015 1 次提交
  3. 04 4月, 2015 1 次提交
  4. 20 3月, 2015 1 次提交
    • V
      usb: dwc2: avoid leaking DMA channels on disconnection · 7252f1bf
      Vincent Palatin 提交于
      When the HCD is disconnected, the DMA transfers still in-flight were cleaned-up
      but the count of available DMA channels (e.g. available_host_channels) was not
      reset.
      The pool of DMA channels can be depleted when doing unclean
      disconnection of USB peripherals, and reaches the point where no
      transfer was possible until the next reboot/reload of the driver.
      
      Tested by putting a programmable USB mux on the port and randomly
      plugging/unpluging a USB HUB with USB mass-storage key, USB-audio and
      USB-ethernet dongle connected to its downstream ports, and also doing the
      disconnection early while the devices are still enumerating to get more URBs
      in-flight.
      After the patch, the devices are still enumerating after thousands of cycles,
      while the port was totally dead before.
      Signed-off-by: NVincent Palatin <vpalatin@chromium.org>
      Acked-by: NJohn Youn <johnyoun@synopsys.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      7252f1bf
  5. 31 1月, 2015 2 次提交
  6. 25 1月, 2015 1 次提交
  7. 20 1月, 2015 2 次提交
  8. 15 11月, 2014 3 次提交
  9. 12 11月, 2014 1 次提交
  10. 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
  11. 05 2月, 2014 1 次提交
  12. 14 1月, 2014 1 次提交
  13. 09 12月, 2013 2 次提交
  14. 04 12月, 2013 1 次提交
  15. 26 11月, 2013 1 次提交
  16. 29 10月, 2013 1 次提交
  17. 26 9月, 2013 2 次提交
  18. 31 8月, 2013 5 次提交
  19. 26 7月, 2013 1 次提交
  20. 24 7月, 2013 7 次提交
  21. 30 5月, 2013 2 次提交
  22. 17 5月, 2013 2 次提交