An error occurred fetching the project authors.
  1. 28 Apr, 2016 1 commit
  2. 04 Mar, 2016 3 commits
  3. 03 Feb, 2016 1 commit
    • John Youn's avatar
      Revert "usb: dwc2: Move reset into dwc2_get_hwparams()" · 03b32e4c
      John Youn authored
      This reverts commit 263b7fb5 ("usb: dwc2: Move reset into
      dwc2_get_hwparams()") due to regression found on bcm2835 platform. USB
      ethernet fails, due to being unable to pick up proper parameters when
      performing a plain reset before reading hw params.
      
      Below shows the results of the gnptxfsiz and hptxfsiz with and before
      and after reverting this (from Stefan Wahren):
      
      So here is the probe result before Patch 1 is applied:
      
      [    1.283148] dwc2 20980000.usb: Configuration mismatch. dr_mode forced to host
      [    1.313894] dwc2 20980000.usb: gnptxfsiz=00201000
      [    1.314104] dwc2 20980000.usb: hptxfsiz=00000000
      [    1.353908] dwc2 20980000.usb: 256 invalid for host_nperio_tx_fifo_size. Check HW configuration.
      [    1.354262] dwc2 20980000.usb: 512 invalid for host_perio_tx_fifo_size. Check HW configuration.
      [    1.394249] dwc2 20980000.usb: DWC OTG Controller
      [    1.394561] dwc2 20980000.usb: new USB bus registered, assigned bus number 1
      [    1.394917] dwc2 20980000.usb: irq 33, io mem 0x00000000
      
      And here is the probe result after Patch 1 is applied:
      
      [    1.280107] dwc2 20980000.usb: Configuration mismatch. dr_mode forced to host
      [    1.353949] dwc2 20980000.usb: gnptxfsiz=01001000
      [    1.354166] dwc2 20980000.usb: hptxfsiz=02002000
      [    1.434301] dwc2 20980000.usb: DWC OTG Controller
      [    1.434616] dwc2 20980000.usb: new USB bus registered, assigned bus number 1
      [    1.434973] dwc2 20980000.usb: irq 33, io mem 0x00000000
      Tested-by: default avatarHeiko Stuebner <heiko@sntech.de>
      Tested-by: default avatarDouglas Anderson <dianders@chromium.org>
      Signed-off-by: default avatarJohn Youn <johnyoun@synopsys.com>
      Reported-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
      Reported-by: default avatarRemi Pommarel <repk@triplefau.lt>
      Tested-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
      Tested-by: default avatarRemi Pommarel <repk@triplefau.lt>
      Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
      03b32e4c
  4. 22 Dec, 2015 6 commits
  5. 15 Dec, 2015 2 commits
  6. 20 Nov, 2015 1 commit
    • Stefan Wahren's avatar
      usb: dwc2: fix kernel oops during driver probe · f74875dc
      Stefan Wahren authored
      This patch make sure that all necessary members of dwc2_hsotg
      are initialized before the irq handler is requested. So
      the kernel oops triggered by dwc2_handle_common_intr has
      been fixed.
      
        dwc2 20980000.usb: Configuration mismatch. Forcing host mode
        dwc2 20980000.usb: no platform data or transceiver defined
        Unable to handle kernel paging request at virtual address cc860040
        pgd = c0004000
        [cc860040] *pgd=0b41e811, *pte=00000000, *ppte=00000000
        Internal error: Oops: 7 [#1] ARM
        CPU: 0 PID: 1 Comm: swapper Not tainted 4.3.0-rc3+ #19
        Hardware name: BCM2835
        task: cb494000 ti: cb4d0000 task.ti: cb4d0000
        PC is at dwc2_is_controller_alive+0x18/0x34
        LR is at dwc2_handle_common_intr+0x24/0xb60
      Acked-by: default avatarJohn Youn <johnyoun@synopsys.com>
      Tested-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      f74875dc
  7. 19 Nov, 2015 3 commits
  8. 17 Nov, 2015 1 commit
    • Douglas Anderson's avatar
      usb: dwc2: host: Fix ahbcfg for rk3066 · f1659303
      Douglas Anderson authored
      The comment for ahbcfg for rk3066 parameters (also used for rk3288)
      claimed that ahbcfg was INCR16, but it wasn't.  Since the bits weren't
      shifted properly, the 0x7 ended up being masked and we ended up
      programming 0x3 for the HBstLen.  Let's set it to INCR16 properly.
      
      As per Wu Liang Feng at Rockchip this may increase transmission
      efficiency.  I did blackbox tests with writing 0s to a USB-based SD
      reader (forcefully capping CPU Freq to try to measure efficiency):
        cd /sys/devices/system/cpu/cpu0/cpufreq
        echo userspace > scaling_governor
        echo 126000 > scaling_setspeed
        for i in $(seq 10); do
          dd if=/dev/zero of=/dev/sdb bs=1M count=750
        done
      
      With the above tests I found that speeds went from ~15MB/s to ~18MB/s.
      Note that most other tests I did (including reading from the same USB
      reader) didn't show any difference in performance.
      Tested-by: default avatarHeiko Stuebner <heiko@sntech.de>
      Acked-by: default avatarJohn Youn <johnyoun@synopsys.com>
      Reviewed-by: default avatarLiangfeng Wu <wulf@rock-chips.com>
      Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      f1659303
  9. 14 Oct, 2015 2 commits
  10. 01 Oct, 2015 2 commits
  11. 27 Sep, 2015 2 commits
  12. 29 Apr, 2015 4 commits
  13. 12 Mar, 2015 1 commit
  14. 12 Jan, 2015 1 commit
  15. 25 Nov, 2014 1 commit
  16. 21 Nov, 2014 1 commit
  17. 14 Nov, 2014 4 commits
  18. 11 Sep, 2014 1 commit
  19. 08 Sep, 2014 3 commits