1. 09 4月, 2010 6 次提交
    • K
      USB storage probe · fac71cc4
      Kim B. Heino 提交于
      While debugging one ill behaving USB device I found two bugs in USB
      storage probe.
      
      usb_stor_get_info() returns -1 (error), 0 (skip) or 1 (ok). First part
      of this patch fixes error case.
      
      Second part fixes usb_inquiry()'s retry counter handling. Original code
      had retry = -1 on error case, not retry = 0 as checked in the next line.
      Signed-off-by: NKim B. Heino <Kim.Heino@bluegiga.com>
      fac71cc4
    • K
      USB storage count · aaad108b
      Kim B. Heino 提交于
      Here's another USB storage patch. Currently U-Boot handles storage
      devices #0 - #4 as valid devices, even if there is none connected. This
      patch fixes usb_stor_get_dev() to check detected device count instead
      of MAX-define.
      
      This is very important for ill behaving devices. usb_dev_desc[] can be
      partially initialized if device probe fails.
      
      After fixing get_dev() it was easy to fix "usb part" etc commands.
      Previously it outputed "Unknown partition table" five times, now it's
      "no USB devices available".
      Signed-off-by: NKim B. Heino <Kim.Heino@bluegiga.com>
      aaad108b
    • S
      EHCI: add NEC PCI ID · d7a22a36
      Sergei Shtylyov 提交于
      Add NEC EHCI controller to the list of the supported devices.
      Signed-off-by: NSergei Shtylyov <sshtylyov@mvista.com>
      
       drivers/usb/host/ehci-pci.c |    1 +
       1 file changed, 1 insertion(+)
      d7a22a36
    • S
      EHCI: fix port reset reporting · c8b2d1dc
      Sergei Shtylyov 提交于
      Commit b416191a (Fix EHCI port reset.) didn't
      move the code that checked for successful clearing of the port reset bit from
      ehci_submit_root(), relying on wait_ms() call instead. The mentioned code also
      erroneously reported port reset state when the reset was already completed.
      Signed-off-by: NSergei Shtylyov <sshtylyov@mvista.com>
      c8b2d1dc
    • S
      EHCI: fix off-by-one error in ehci_submit_root() · e06a055b
      Sergei Shtylyov 提交于
      USB devices on the 2nd port are not detected and I get the following message:
      
      The request port(1) is not configured
      
      That's with default CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS value of 2. 'req->index'
      is 1-based, so the comparison in ehci_submit_root() can't be correct.
      Signed-off-by: NSergei Shtylyov <sshtylyov@mvista.com>
      e06a055b
    • S
      EHCI: fix root hub device descriptor · 6d313c84
      Sergei Shtylyov 提交于
      On little endian machines, EHCI root hub's USB revision is reported as 0.2 --
      cpu_to_le16() was missed in the initializer for the 'bcdUSB' descriptor field.
      The same should be done for the 'bcdDevice' field.
      Signed-off-by: NSergei Shtylyov <sshtylyov@mvista.com>
      6d313c84
  2. 08 4月, 2010 4 次提交
  3. 07 4月, 2010 14 次提交
  4. 06 4月, 2010 1 次提交
  5. 05 4月, 2010 1 次提交
  6. 04 4月, 2010 14 次提交