1. 18 Jan, 2015 1 commit
    • 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
  2. 23 Nov, 2014 1 commit
  3. 24 Jul, 2013 1 commit
  4. 30 Jun, 2013 1 commit
  5. 12 Jun, 2013 1 commit
  6. 18 Mar, 2013 1 commit
    • Lukasz Majewski's avatar
      usb:composite:fix Provide function data when addressing device with only one interface · f7b4162e
      Lukasz Majewski authored
      
      
      This commit fixes problems with some non-standard requests send with
      device address instead of interface address (bmRequestType.Receipent field).
      
      This happens with dfu-util (debian version: 0.5), which address non standard
      requests (like w_value=0x21 and bRequest=GET_DESCRIPTOR) to device.
      Without this fix, the above request is STALLED, and hence causes dfu-util
      to assume some standard configuration (packet size = 1024B instead of 4096B)
      In turn it displays following errors:
      Error obtaining DFU functional descriptor
      Warning: Assuming DFU version 1.0
      Warning: Transfer size can not be detected
      ...
      Warning: Trying default transfer size 1024
      
      This fix allows passing non-standard request to function setup code, where
      it shall be handled.
      
      Tested at: 	Trats (exynos4210)
      Tested with:DFU and UMS gadgets
      Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      f7b4162e
  7. 20 May, 2012 1 commit