1. 18 10月, 2010 22 次提交
  2. 14 10月, 2010 12 次提交
  3. 13 10月, 2010 6 次提交
    • B
      usb: musb: only write CLRDATATOG when appropriate · 4ee691f6
      Bryan Wu 提交于
      This is a change similar to what is already in the Linux driver.  We
      should only program the CLRDATATOG bit when the current mode indicates
      that it is needed.
      Signed-off-by: NBryan Wu <bryan.wu@analog.com>
      Signed-off-by: NCliff Cai <cliff.cai@analog.com>
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      4ee691f6
    • L
      usb: Add support for multiple-LUN mass storage devices · 99e9ed1f
      Ludovic Courtès 提交于
      This patch changes `usb_stor_scan' to scan all the LUNs of each mass
      storage device.  It also fixes the various commands to correctly set
      the LUN field.
      
      Notably, it allows each LUN of GuruPlug's microSD card reader to be
      accessed.
      Signed-off-by: NLudovic Courtès <ludo@gnu.org>
      Acked-by: NPrafulla Wadaskar <prafulla@marvell.com>
      99e9ed1f
    • V
      USB-CDC: Prevent rx_req being enqueued twice · 98fae970
      Vitaly Kuzmichev 提交于
      After gadget reinitializaton (after tftp has been done once)
      packet_received may become equal to 1 due to nuking OUT_EP
      while disabling it in eth_reset_config.
      
      rx_submit called from usb_eth_init queues rx_req first time.
      But the first call of usb_eth_recv from NetLoop queues rx_req
      again due to packet_received = 1.
      
      The following flow shows the path of functions calls when
      this happens:
      
       net/net.c:NetLoop
       |
       +-net/eth.c:eth_init
       |   ether.c:usb_eth_init
       |   |
       |   +-udc_driver:usb_gadget_handle_interrupts
       |   |   udc_driver:...
       |   |     ether.c:eth_setup
       |   |       ether.c:eth_set_config
       |   |         ether.c:eth_reset_config
       |   |           udc_driver:usb_ep_disable
       |   |             udc_driver:nuke
       |   |               ether.c:rx_complete
       |   |                 ether.c: packet_received = 1;
       |   |
       |   +-ether.c:rx_submit
       |       udc_driver:usb_ep_queue --- The first time when rx_req is queued
       |
       +-net/eth.c:eth_rx
           ether.c:usb_eth_recv
           |
           +-udc_driver:usb_gadget_handle_interrupts
           |   udc_driver:... --- no interrupts, returning
           +-ether.c: if (packet_received) { ...
               ether.c:rx_submit
                 udc_driver:usb_ep_queue --- The second time!
      Signed-off-by: NVitaly Kuzmichev <vkuzmichev@mvista.com>
      98fae970
    • V
      USB-CDC: Fix tx/rx_req memory leaks · ac5d32d1
      Vitaly Kuzmichev 提交于
      Remove and fix needless and destructive operations with tx/rx_req.
      
      1) 'req' in rx_complete is always not NULL and always equals to rx_req
      2) Free allocated tx_req if rx_req allocation has failed
      3) Do not zero out tx/rx_req in usb_eth_init, leave this for
      eth_reset_config which will be called at the next use of usb0
      4) Additional check in usb_eth_recv is not required
      Signed-off-by: NVitaly Kuzmichev <vkuzmichev@mvista.com>
      ac5d32d1
    • M
      USB: Make non-bulk delay longer in OHCI · f2443d10
      Marek Vasut 提交于
      This fixes TIMEOUT with my Kingston 32GB USB3.0 flashdrive, which I experienced
      on my PXA270 (USB 1.1) Vpac270 board.
      Signed-off-by: NMarek Vasut <marek.vasut@gmail.com>
      f2443d10
    • A
      board/armltd/integrator/split_by_variant.sh: fix 'echo -n' · 89bca0ab
      Andreas Bießmann 提交于
      This patch fixes an error when running MAKEALL for ARM9.
      
      On OS X /bin/sh uses builtin echo which does not utilise '-n' switch.
      GNU manual for builtins recomend to use here-document style to solve
      this portability issue.
      
      This patch removes the usage of 'echo -n' and replace by here-document
      style or a oneline echo command.
      Signed-off-by: NAndreas Bießmann <andreas.devel@googlemail.com>
      CC: Peter Pearse <peter.pearse@arm.com>
      89bca0ab