1. 23 12月, 2015 3 次提交
    • J
      usb: dwc2: Rename dwc2_core_reset() · 6d58f346
      John Youn 提交于
      Renamed dwc2_core_reset() to dwc2_core_reset_and_force_dr_mode(). This
      describes what it is doing more accurately. This is in preparation of
      introducing a plain dwc2_core_reset() function that only performs the
      reset and doesn't force the mode.
      Signed-off-by: NJohn Youn <johnyoun@synopsys.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      6d58f346
    • D
      usb: dwc2: Avoid double-reset at boot time · 0fe239bc
      Douglas Anderson 提交于
      In (usb: dwc2: reset dwc2 core before dwc2_get_hwparams()) we added an
      extra reset to the probe path for the dwc2 USB controllers.  This
      allowed proper detection of parameters even if the firmware had already
      used the USB part.
      
      Unfortunately, this extra reset is quite slow and is affecting boot
      speed.  We can avoid the double-reset by skipping the extra reset that
      would happen just after the one we added.  Logic that explains why this
      is safe:
      
      * As of the CL mentioned above, we now always call dwc2_core_reset() in
        dwc2_driver_probe() before dwc2_hcd_init().
      
      * The only caller of dwc2_hcd_init() is dwc2_driver_probe(), so we're
        guaranteed that dwc2_core_reset() was called before dwc2_hdc_init().
      
      * dwc2_hdc_init() is the only caller that passes an irq other than -1 to
        dwc2_core_init().  Thus if dwc2_core_init() is called with an irq
        other than -1 we're guaranteed that dwc2_core_reset was called before
        dwc2_core_init().
      
      ...this allows us to remove the dwc2_core_reset() in dwc2_core_init() if
      irq is not < 0.
      
      Note that since "irq" wasn't used in the function dwc2_core_init()
      anyway and since select_phy was always set at exactly the same times we
      could avoid the reset, we remove "irq" and rename "select_phy" to
      "initial_setup" and adjust the callers accordingly.
      Signed-off-by: NDouglas Anderson <dianders@chromium.org>
      Signed-off-by: NJohn Youn <johnyoun@synopsys.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      0fe239bc
    • Y
      usb: dwc2: reset dwc2 core before dwc2_get_hwparams() · cebfdbf3
      Yunzhi Li 提交于
      We initiate dwc2 usb controller in BIOS, dwc2_core_reset() should
      be called before dwc2_get_hwparams() to reset core registers to
      default value. Without this the FIFO setting might be incorrect
      because calculating FIFO size need power-on value of
      GRXFSIZ/GNPTXFSIZ/HPTXFSIZ registers.
      
      This patch could avoid warnning massage like in rk3288 platform:
      [    2.074764] dwc2 ff580000.usb: 256 invalid for
      host_perio_tx_fifo_size. Check HW configuration.
      Signed-off-by: NYunzhi Li <lyz@rock-chips.com>
      Signed-off-by: NDouglas Anderson <dianders@chromium.org>
      Signed-off-by: NJohn Youn <johnyoun@synopsys.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      cebfdbf3
  2. 15 12月, 2015 4 次提交
  3. 14 10月, 2015 2 次提交
  4. 03 10月, 2015 1 次提交
  5. 02 10月, 2015 2 次提交
  6. 27 9月, 2015 2 次提交
  7. 07 7月, 2015 1 次提交
  8. 30 4月, 2015 7 次提交
  9. 13 3月, 2015 1 次提交
  10. 31 1月, 2015 3 次提交
  11. 13 1月, 2015 8 次提交
  12. 21 11月, 2014 3 次提交
  13. 15 11月, 2014 3 次提交