1. 01 5月, 2018 1 次提交
  2. 23 4月, 2018 1 次提交
    • J
      USB: musb: host: prevent core phy initialisation · 1f81f118
      Johan Hovold 提交于
      Set the new HCD flag which prevents USB core from trying to manage our
      phys.
      
      This is needed to be able to associate the controller platform device
      with the glue device device-tree node on the BBB which uses legacy USB
      phys. Otherwise, the generic phy lookup in usb_phy_roothub_init() and
      thus HCD registration fails repeatedly with -EPROBE_DEFER (see commit
      178a0bce ("usb: core: hcd: integrate the PHY wrapper into the HCD
      core")).
      
      Note that a related phy-lookup issue was recently worked around in the
      phy core by commit b7563e27 ("phy: work around 'phys' references to
      usb-nop-xceiv devices"). Something similar may now be needed for other
      USB phys, and in particular if we eventually want to let USB core manage
      musb generic phys.
      
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      Signed-off-by: NBin Liu <b-liu@ti.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1f81f118
  3. 26 3月, 2018 1 次提交
  4. 20 2月, 2018 1 次提交
  5. 03 1月, 2018 2 次提交
  6. 07 11月, 2017 1 次提交
    • G
      USB: musb: Remove redundant license text · 21b650c2
      Greg Kroah-Hartman 提交于
      Now that the SPDX tag is in all USB files, that identifies the license
      in a specific and legally-defined manner.  So the extra GPL text wording
      can be removed as it is no longer needed at all.
      
      This is done on a quest to remove the 700+ different ways that files in
      the kernel describe the GPL license text.  And there's unneeded stuff
      like the address (sometimes incorrect) for the FSF which is never
      needed.
      
      No copyright headers or other non-license-description text was removed.
      
      Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
      Cc: Chen-Yu Tsai <wens@csie.org>
      Acked-by: NBin Liu <b-liu@ti.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      21b650c2
  7. 04 11月, 2017 1 次提交
  8. 28 8月, 2017 2 次提交
  9. 30 7月, 2017 1 次提交
    • B
      usb: musb: fix tx fifo flush handling again · 45d73860
      Bin Liu 提交于
      commit 68fe05e2 ("usb: musb: fix tx fifo flush handling") drops the
      1ms delay trying to solve the long disconnect time issue when
      application queued many tx urbs. However, the 1ms delay is needed for
      some use cases, for example, without the delay, reconnecting AR9271 WIFI
      dongle no longer works if the connection is dropped from the AP.
      
      So let's add back the 1ms delay in musb_h_tx_flush_fifo(), and solve the
      long disconnect time problem with a separate patch for
      usb_hcd_flush_endpoint().
      
      Cc: stable@vger.kernel.org # v4.4+
      Signed-off-by: NBin Liu <b-liu@ti.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      45d73860
  10. 27 6月, 2017 1 次提交
  11. 18 5月, 2017 1 次提交
  12. 06 1月, 2017 1 次提交
    • B
      usb: musb: core: add clear_ep_rxintr() to musb_platform_ops · 6def85a3
      Bin Liu 提交于
      During dma teardown for dequque urb, if musb load is high, musb might
      generate bogus rx ep interrupt even when the rx fifo is flushed. In such
      case any of the follow log messages could happen.
      
      	musb_host_rx 1853: BOGUS RX2 ready, csr 0000, count 0
      
      	musb_host_rx 1936: RX3 dma busy, csr 2020
      
      As mentioned in the current inline comment, clearing ep interrupt in the
      teardown path avoids the bogus interrupt.
      
      Clearing ep interrupt is platform dependent, so this patch adds a
      platform callback to allow glue driver to clear the ep interrupt.
      
      This bug seems to be existing since the initial driver for musb support,
      but I only validated the fix back to v4.1, so only cc stable for v4.1+.
      
      cc: stable@vger.kernel.org # 4.1+
      Signed-off-by: NBin Liu <b-liu@ti.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6def85a3
  13. 03 11月, 2016 1 次提交
  14. 17 7月, 2016 2 次提交
  15. 02 6月, 2016 7 次提交
  16. 27 4月, 2016 1 次提交
  17. 23 2月, 2016 1 次提交
  18. 17 2月, 2016 1 次提交
  19. 18 11月, 2015 1 次提交
    • B
      usb: musb: fix tx fifo flush handling · 68fe05e2
      Bin Liu 提交于
      Here are a few changes in musb_h_tx_flush_fifo().
      
      - It has been observed that sometimes (if not always) musb is unable
        to flush tx fifo during urb dequeue when disconnect a device. But
        it seems to be harmless, since the tx fifo flush is done again in
        musb_ep_program() when re-use the hw_ep.
      
        But the WARN() floods the console in the case when multiple tx urbs
        are queued, so change it to dev_WARN_ONCE().
      
      - applications could queue up many tx urbs, then the 1ms delay could
        causes minutes of delay in device disconnect. So remove it to get
        better user experience. The 1ms delay does not help the flushing
        anyway.
      
      - cleanup the debug code - related to lastcsr.
      
      ----
      Note: The tx fifo flush issue has been observed during device disconnect
      on AM335x.
      
      To reproduce the issue, ensure tx urb(s) are queued when unplug the usb
      device which is connected to AM335x usb host port.
      
      I found using a usb-ethernet device and running iperf (client on AM335x)
      has very high chance to trigger the problem.
      
      Better to turn on dev_dbg() in musb_cleanup_urb() with CPPI enabled to
      see the issue when aborting the tx channel.
      Signed-off-by: NBin Liu <b-liu@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      68fe05e2
  20. 26 5月, 2015 2 次提交
  21. 08 5月, 2015 8 次提交
  22. 28 4月, 2015 1 次提交
  23. 23 2月, 2015 1 次提交