1. 21 5月, 2018 2 次提交
    • J
      usb: dwc2: Fix HiKey regression caused by power_down feature · d98c624a
      John Stultz 提交于
      In 4.17-rc, commit 03ea6d6e ("usb: dwc2: Enable power down")
      caused the HiKey board to not correctly handle switching between
      usb-gadget and usb-host mode.
      
      Unplugging the OTG port would result in:
      [   42.240973] dwc2 f72c0000.usb: dwc2_restore_host_registers: no host registers to restore
      [   42.249066] dwc2 f72c0000.usb: dwc2_host_exit_hibernation: failed to restore host registers
      
      And the USB-host ports would not function.
      
      And plugging in the OTG port, we would see:
      [   46.046557] WARNING: CPU: 3 PID: 6 at drivers/usb/dwc2/gadget.c:260 dwc2_hsotg_init_fifo+0x194/0x1a0
      [   46.055761] CPU: 3 PID: 6 Comm: kworker/u16:0 Not tainted 4.17.0-rc5-00030-ge67da8c #231
      [   46.055767] Hardware name: HiKey Development Board (DT)
      [   46.055784] Workqueue: dwc2 dwc2_conn_id_status_change
      ...
      
      Thus, this patch sets the hisi params to disable the power_down
      flag by default, and gets thing working again.
      
      Cc: John Youn <johnyoun@synopsys.com>
      Cc: Vardan Mikayelyan <mvardan@synopsys.com>
      Cc: Artur Petrosyan <arturp@synopsys.com>
      Cc: Grigor Tovmasyan <tovmasya@synopsys.com>
      Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
      Cc: linux-usb@vger.kernel.org
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      d98c624a
    • G
      usb: dwc2: Fix kernel doc's warnings. · 6fb914d7
      Grigor Tovmasyan 提交于
      Added descriptions for all not described parameters.
      Fix all kernel doc's warnings.
      Acked-by: NMinas Harutyunyan <hminas@synopsys.com>
      Signed-off-by: NGrigor Tovmasyan <tovmasya@synopsys.com>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      6fb914d7
  2. 15 5月, 2018 1 次提交
  3. 13 3月, 2018 8 次提交
  4. 05 3月, 2018 1 次提交
  5. 11 12月, 2017 1 次提交
    • M
      usb: dwc2: Fix TxFIFOn sizes and total TxFIFO size issues · 9273083a
      Minas Harutyunyan 提交于
      In host mode reading from DPTXSIZn returning invalid value in
      dwc2_check_param_tx_fifo_sizes function.
      
      In total TxFIFO size calculations unnecessarily reducing by ep_info.
      hw->total_fifo_size can be fully allocated for FIFO's.
      
      Added num_dev_in_eps member in dwc2_hw_params structure to save number
      of IN EPs.
      
      Added g_tx_fifo_size array in dwc2_hw_params structure to store power
      on reset values of DPTXSIZn registers in forced device mode.
      
      Updated dwc2_hsotg_tx_fifo_count() function to get TxFIFO count from
      num_dev_in_eps.
      
      Updated dwc2_get_dev_hwparams() function to store DPTXFSIZn in
      g_tx_fifo_size array.
      
      dwc2_get_host/dev_hwparams() functions call moved after num_dev_in_eps
      set from hwcfg4.
      
      Modified dwc2_check_param_tx_fifo_sizes() function to check TxFIFOn
      sizes based on g_tx_fifo_size array.
      
      Removed ep_info subtraction during calculation of tx_addr_max in
      dwc2_hsotg_tx_fifo_total_depth() function. Also removed
      dwc2_hsotg_ep_info_size() function as no more need.
      Acked-by: NJohn Youn <johnyoun@synopsys.com>
      Signed-off-by: NGevorg Sahakyan <sahakyan@synopsys.com>
      Signed-off-by: NMinas Harutyunyan <hminas@synopsys.com>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      9273083a
  6. 04 11月, 2017 1 次提交
  7. 19 10月, 2017 2 次提交
  8. 02 6月, 2017 1 次提交
  9. 11 4月, 2017 1 次提交
  10. 24 1月, 2017 14 次提交
  11. 12 1月, 2017 1 次提交
  12. 02 1月, 2017 4 次提交
  13. 18 11月, 2016 3 次提交