Skip to content
Snippets Groups Projects
  1. Jul 22, 2015
  2. Jun 08, 2015
  3. May 29, 2015
  4. Apr 18, 2015
  5. Apr 14, 2015
  6. Mar 25, 2015
  7. Feb 25, 2015
  8. Jan 18, 2015
    • 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
  9. Dec 18, 2014
  10. Dec 16, 2014
    • 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
  11. Dec 11, 2014
  12. Nov 23, 2014
  13. Nov 07, 2014
Loading