1. 11 3月, 2014 1 次提交
    • S
      usb: create common header virtual root hub descriptors · eb838e7d
      Stephen Warren 提交于
      Many USB host controller drivers contain almost identical copies of the
      same virtual root hub descriptors. Put these into a common file to avoid
      duplication.
      
      Note that there were some very minor differences between the descriptors
      in the various files, such as:
      
      - USB 1.0 vs. USB 1.1
      - Manufacturer/Device ID
      - Max packet size
      - String content
      
      I assume these aren't relevant.
      
      Cc: Thomas Lange <thomas@corelatus.se>
      Cc: Shinya Kuribayashi <skuribay@pobox.com>
      Cc: Gary Jennejohn <garyj@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Eric Millbrandt <emillbrandt@coldhaus.com>
      Cc: Pierre Aubert <p.aubert@staubli.com>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Daniel Hellstrom <daniel@gaisler.com>
      Cc: Denis Peter <d.peter@mpl.ch>
      Cc: Rodolfo Giometti <giometti@linux.it>
      Cc: Zhang Wei <wei.zhang@freescale.com>
      Cc: Mateusz Zalega <m.zalega@samsung.com>
      Cc: Remy Bohmer <linux@bohmer.net>
      Cc: Markus Klotzbuecher <mk@denx.de>
      Cc: Minkyu Kang <mk7.kang@samsung.com>
      Cc: Gary Jennejohn <garyj@denx.de>
      Cc: C Nauman <cnauman@diagraph.com>
      Cc: David Müller <d.mueller@elsoft.ch>
      Cc: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
      Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      Cc: Thomas Abraham <t-abraham@ti.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Andrew Murray <amurray@embedded-bits.co.uk>
      Cc: Matej Frančeškin <matej.franceskin@comtrade.com>
      Cc: Cliff Cai <cliff.cai@analog.com>
      Cc: Bryan Wu <cooloney@gmail.com>
      Signed-off-by: NStephen Warren <swarren@wwwdotorg.org>
      eb838e7d
  2. 09 11月, 2013 1 次提交
  3. 21 10月, 2013 2 次提交
  4. 24 7月, 2013 1 次提交
  5. 12 4月, 2013 1 次提交
  6. 20 11月, 2012 1 次提交
    • I
      usb: use linux/usb/ch9.h instead of usbdescriptors.h · c60795f4
      Ilya Yanok 提交于
      Linux usb/ch9.h seems to have all the same information (and more)
      as usbdescriptors.h so use the former instead of the later one.
      
      As a consequense of this change USB_SPEED_* values don't correspond
      directly to EHCI speed encoding anymore, I've added necessary
      recoding in EHCI driver. Also there is no point to put speed into
      pipe anymore so it's removed and a bunch of host drivers fixed to
      look at usb_device->speed instead.
      
      Old usbdescriptors.h included is not removed as it seems to be
      used by old USB device code.
      
      This makes usb.h and usbdevice.h incompatible. Fortunately the
      only place that tries to include both are the old MUSB code and
      it needs usb.h only for USB_DMA_MINALIGN used in aligned attribute
      on musb_regs structure but this attribute seems to be unneeded
      (old MUSB code doesn't support any DMA at all).
      Signed-off-by: NIlya Yanok <ilya.yanok@cogentembedded.com>
      c60795f4
  7. 16 10月, 2012 1 次提交
  8. 01 9月, 2012 1 次提交
    • T
      USB: Fix strict aliasing in ohci-hcd · f1273f11
      Troy Kisky 提交于
      commit 5f6aa03f
          USB: Fix complaints about strict aliasing in OHCI-HCD
      
      tried to fix this, but gcc4.4 still complains. So, this
      patch basically reverts the above and does a simpler fix.
      
      also, the above commit incorrectly changed
      	/* corresponds to data_buf[4-7] */
      	datab [1] = 0;
      to
      
      	/* corresponds to databuf.u8[4-7] */
      	databuf.u8[1] = 0;
      
      This patch also fixes that.
      Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
      f1273f11
  9. 19 3月, 2012 1 次提交
    • M
      usb: replace wait_ms() with mdelay() · 5b84dd67
      Mike Frysinger 提交于
      Common code has a mdelay() func, so use that instead of the usb-specific
      wait_ms() func.  This also fixes the build errors:
      
      ohci-hcd.c: In function 'submit_common_msg':
      /usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
      ohci-hcd.c:1519:9: sorry, unimplemented: called from here
      /usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
      ohci-hcd.c:1816:10: sorry, unimplemented: called from here
      /usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
      ohci-hcd.c:1827:10: sorry, unimplemented: called from here
      /usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
      ohci-hcd.c:1844:10: sorry, unimplemented: called from here
      /usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
      ohci-hcd.c:1563:11: sorry, unimplemented: called from here
      /usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
      ohci-hcd.c:1583:9: sorry, unimplemented: called from here
      make[1]: *** [ohci-hcd.o] Error 1
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      Acked-by: NMarek Vasut <marex@denx.de>
      5b84dd67
  10. 03 3月, 2012 1 次提交
  11. 11 12月, 2011 1 次提交
  12. 22 10月, 2011 1 次提交
  13. 10 10月, 2011 1 次提交
  14. 20 2月, 2011 1 次提交
    • S
      Fix EHCI usb submit timeout and unify with OHCI · 96820a35
      Simon Glass 提交于
      Changed both to use a common timeout for URB submission, since they were using
      different values and EHCI's was too short.
      
      Also fixed EHCI to actually check if urb submission succeeded, rather than
      silently continuing into the weeds.
      
      Change-Id: I7f71499ffaa05187d8e5618db2419e1606007b82
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      96820a35
  15. 13 10月, 2010 1 次提交
  16. 01 7月, 2010 1 次提交
  17. 28 11月, 2009 1 次提交
  18. 20 11月, 2009 1 次提交
  19. 16 5月, 2009 1 次提交
  20. 07 4月, 2009 1 次提交
  21. 12 2月, 2009 1 次提交
  22. 29 11月, 2008 1 次提交
  23. 19 10月, 2008 1 次提交
  24. 14 10月, 2008 1 次提交
    • R
      fix USB initialisation procedure · 48867208
      Remy Bohmer 提交于
      The max packet size is encoded as 0,1,2,3 for 8,16,32,64 bytes.
      At some places directly 8,16,32,64 was used instead of the encoded
      value. Made a enum for the options to make this more clear and to help
      preventing similar errors in the future.
      
      After fixing this bug it became clear that another bug existed where
      the 'pipe' is and-ed with PIPE_* flags, where it should have been
      'usb_pipetype(pipe)', or even better usb_pipeint(pipe).
      
      Also removed the triple 'get_device_descriptor' sequence, it has no use,
      and Windows nor Linux behaves that way.
      There is also a poll going on with a timeout when usb_control_msg() fails.
      However, the poll is useless, because the flag will never be set on a error,
      because there is no code that runs in a parallel that can set this flag.
      Changed this to something more logical.
      
      Tested on AT91SAM9261ek and compared the flow on the USB bus to what
      Linux is doing. There is no difference anymore in the early initialisation
      sequence.
      Signed-off-by: NRemy Bohmer <linux@bohmer.net>
      Signed-off-by: NMarkus Klotzbuecher <mk@denx.de>
      48867208
  25. 17 9月, 2008 1 次提交
  26. 09 9月, 2008 1 次提交
    • R
      Make usb-stop() safe to call multiple times in a row. · eba1f2fc
      Remy Bohmer 提交于
      A recent commit (936897d4)
      enabled the usb_stop() command in common/cmd_bootm.c which was
      not enabled for some time, because no board did actually set the
      CFG_CMD_USB flag. So, now the usb_stop() is executed before
      loading the linux kernel.
      
      However, the usb_ohci driver hangs up (at least on AT91SAM) if the
      driver is stopped twice (e.g. the peripheral clock is stopped on AT91).
      If some other piece of code calls usb_stop() before the bootm command,
      this command will hangup the system during boot.
      (usb start and stop is typically used while booting from usb memory stick)
      
      But, stopping the usb stack twice is useless anyway, and a flag already
      existed that kept track on the usb_init()/usb_stop() calls.
      So, we now check if the usb stack is really started before we stop it.
      
      This problem is now fixed in both the upper as low-level layer.
      Signed-off-by: NRemy Bohmer <linux@bohmer.net>
      Acked-by: NMarkus Klotzbuecher <mk@denx.de>
      eba1f2fc
  27. 06 9月, 2008 1 次提交
  28. 31 8月, 2008 1 次提交
  29. 27 5月, 2008 1 次提交
  30. 22 5月, 2008 3 次提交
  31. 24 4月, 2008 2 次提交
  32. 18 4月, 2008 1 次提交
  33. 15 3月, 2008 1 次提交
    • S
      usb: Add CFG_OHCI_USE_NPS to common USB-OHCI driver · 2596f5b9
      Stefan Roese 提交于
      This patch adds CFG_OHCI_USE_NPS to the common USB-OHCI driver. This
      way a board just needs to define this new option to enable the "force
      NoPowerSwitching mode" instead of adding new CPU/architecture defines
      to the USB source itself.
      
      This new option will be used first with the new AMCC 460EX Canyonlands
      board port, which will be posted in a few days.
      
      This patch also fixes a small compilation problem when DEBUG is enabled.
      Signed-off-by: NStefan Roese <sr@denx.de>
      2596f5b9
  34. 12 1月, 2008 1 次提交
  35. 26 11月, 2007 1 次提交
  36. 19 11月, 2007 1 次提交