1. 14 Apr, 2015 8 commits
  2. 25 Mar, 2015 1 commit
  3. 25 Feb, 2015 5 commits
  4. 18 Jan, 2015 3 commits
    • Alex Sadovsky's avatar
      usb: gadget: pxa25x_udc: fix use-before-initialized bug · c0978a94
      Alex Sadovsky authored
      
      
      Fix use-before-initialized bug in pxa25x_udc driver.
      
      Function usb_gadget_register_driver calls udc_disable,
      and udc_disable calls pullup_off that uses dev->mach->udc_command.
      But dev->mach is initialized in usb_gadget_register_driver after
      calling udc_disable. This patch fixes the order of initialization.
      Signed-off-by: default avatarAlex Sadovsky <Nable.MainInbox@googlemail.com>
      c0978a94
    • Stefan Roese's avatar
      usb: gadget: f_dfu: Add get_alt function to pass the USB compliance test · 1fd81b7c
      Stefan Roese authored
      
      
      Without this function the USB compliance test (USB 2.0 Command Verifier) will
      fail in the "Interface Descriptor Test" with this error message:
      
      FAIL
      (1.2.51) A successful GetInterface request must return the alternate setting
      set by a prior call to SetInterface.
      
      Lets add this function to read back the value so that the DFU device fully
      passes the USB compliance test.
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Roger Meier <r.meier@siemens.com>
      Cc: Samuel Egli <samuel.egli@siemens.com>
      Cc: Enrico Leto <enrico.leto@siemens.com>
      Acked-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      1fd81b7c
    • Stefan Roese's avatar
      usb: gadget: composite: Fix NULL pointer crash in USB compliance test · 87ed6b10
      Stefan Roese authored
      
      
      On the DXR2 board (AM335x using MUSB) the USB compliance test suite
      (USB 2.0 Command Verifier) will cause the board to crash and reset
      upon the "BOS Descriptor Test - Addressed state". Here the output
      from the DRX2 while running this test:
      
      GADGET DRIVER: usb_dnl_dfu
      musb-hdrc: peripheral reset irq lost!
      composite_setup (776)
      data abort
      pc : [<87f693ac>]          lr : [<87f6911c>]
      sp : 86f33a58  ip : 00000000     fp : 86f3bbac
      r10: 00000f00  r9 : 86f33ef4     r8 : 86f37da8
      r7 : 00000005  r6 : 86f33a90     r5 : 00000000  r4 : 86f37e30
      r3 : 00000000  r2 : 00000000     r1 : 87f9c888  r0 : 00000016
      Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32
      Resetting CPU ...
      
      resetting ...
      
      By adding the case statement for USB_DT_BOS and therefore not running
      into the default case (jump to unkown label) this crash is fixed.
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Roger Meier <r.meier@siemens.com>
      Cc: Samuel Egli <samuel.egli@siemens.com>
      Cc: Enrico Leto <enrico.leto@siemens.com>
      Acked-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      87ed6b10
  5. 18 Dec, 2014 3 commits
  6. 16 Dec, 2014 1 commit
    • Bo Shen's avatar
      USB: gadget: atmel_usba_udc: fix transfer hang issue · 68ae8825
      Bo Shen authored
      
      
      When receive data, the RXRDY in status register set by hardware
      after a new packet has been stored in the endpoint FIFO. After,
      we copy from FIFO, we clear it, make the FIFO can be accessed
      again.
      In the receive_data() function, this bit RXRDY has been cleared.
      So, after the receive_data() function return, this bit should
      not be cleared again, or else it will cause the accessing FIFO
      corrupt, which will make the data loss.
      Signed-off-by: default avatarBo Shen <voice.shen@atmel.com>
      68ae8825
  7. 11 Dec, 2014 1 commit
  8. 23 Nov, 2014 1 commit
  9. 07 Nov, 2014 2 commits
  10. 06 Nov, 2014 2 commits
  11. 06 Oct, 2014 8 commits
  12. 24 Sep, 2014 3 commits
  13. 02 Sep, 2014 2 commits