1. 22 2月, 2012 3 次提交
    • S
      xhci: Fix encoding for HS bulk/control NAK rate. · 340a3504
      Sarah Sharp 提交于
      The xHCI 0.96 spec says that HS bulk and control endpoint NAK rate must
      be encoded as an exponent of two number of microframes.  The endpoint
      descriptor has the NAK rate encoded in number of microframes.  We were
      just copying the value from the endpoint descriptor into the endpoint
      context interval field, which was not correct.  This lead to the VIA
      host rejecting the add of a bulk OUT endpoint from any USB 2.0 mass
      storage device.
      
      The fix is to use the correct encoding.  Refactor the code to convert
      number of frames to an exponential number of microframes, and make sure
      we convert the number of microframes in HS bulk and control endpoints to
      an exponent.
      
      This should be back ported to kernels as old as 2.6.31, that contain the
      commit dfa49c4a "USB: xhci - fix math
      in xhci_get_endpoint_interval"
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Tested-by: NFelipe Contreras <felipe.contreras@gmail.com>
      Suggested-by: NAndiry Xu <andiry.xu@amd.com>
      Cc: stable@vger.kernel.org
      340a3504
    • E
      USB: Set hub depth after USB3 hub reset · a45aa3b3
      Elric Fu 提交于
      The superspeed device attached to a USB 3.0 hub(such as VIA's)
      doesn't respond the address device command after resume. The
      root cause is the superspeed hub will miss the Hub Depth value
      that is used as an offset into the route string to locate the
      bits it uses to determine the downstream port number after
      reset, and all packets can't be routed to the device attached
      to the superspeed hub.
      
      Hub driver sends a Set Hub Depth request to the superspeed hub
      except for USB 3.0 root hub when the hub is initialized and
      doesn't send the request again after reset due to the resume
      process. So moving the code that sends the Set Hub Depth request
      to the superspeed hub from hub_configure() to hub_activate()
      is to cover those situations include initialization and reset.
      
      The patch should be backported to kernels as old as 2.6.39.
      Signed-off-by: NElric Fu <elricfu1@gmail.com>
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Cc: stable@vger.kernel.org
      a45aa3b3
    • S
      USB: Fix handoff when BIOS disables host PCI device. · cab928ee
      Sarah Sharp 提交于
      On some systems with an Intel Panther Point xHCI host controller, the
      BIOS disables the xHCI PCI device during boot, and switches the xHCI
      ports over to EHCI.  This allows the BIOS to access USB devices without
      having xHCI support.
      
      The downside is that the xHCI BIOS handoff mechanism will fail because
      memory mapped I/O is not enabled for the disabled PCI device.
      Jesse Barnes says this is expected behavior.  The PCI core will enable
      BARs before quirks run, but it will leave it in an undefined state, and
      it may not have memory mapped I/O enabled.
      
      Make the generic USB quirk handler call pci_enable_device() to re-enable
      MMIO, and call pci_disable_device() once the host-specific BIOS handoff
      is finished.  This will balance the ref counts in the PCI core.  When
      the PCI probe function is called, usb_hcd_pci_probe() will call
      pci_enable_device() again.
      
      This should be back ported to kernels as old as 2.6.31.  That was the
      first kernel with xHCI support, and no one has complained about BIOS
      handoffs failing due to memory mapped I/O being disabled on other hosts
      (EHCI, UHCI, or OHCI).
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Acked-by: NOliver Neukum <oneukum@suse.de>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Cc: stable@vger.kernel.org
      cab928ee
  2. 15 2月, 2012 2 次提交
    • L
      USB: option: cleanup zte 3g-dongle's pid in option.c · b9e44fe5
      li.rui27@zte.com.cn 提交于
        1. Remove all old mass-storage ids's pid:
           0x0026,0x0053,0x0098,0x0099,0x0149,0x0150,0x0160;
        2. As the pid from 0x1401 to 0x1510 which have not surely assigned to
           use for serial-port or mass-storage port,so i think it should be
           removed now, and will re-add after it have assigned in future;
        3. sort the pid to WCDMA and CDMA.
      Signed-off-by: NRui li <li.rui27@zte.com.cn>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b9e44fe5
    • S
      USB: Don't fail USB3 probe on missing legacy PCI IRQ. · 68d07f64
      Sarah Sharp 提交于
      Intel has a PCI USB xhci host controller on a new platform. It doesn't
      have a line IRQ definition in BIOS.  The Linux driver refuses to
      initialize this controller, but Windows works well because it only depends
      on MSI.
      
      Actually, Linux also can work for MSI.  This patch avoids the line IRQ
      checking for USB3 HCDs in usb core PCI probe.  It allows the xHCI driver
      to try to enable MSI or MSI-X first.  It will fail the probe if MSI
      enabling failed and there's no legacy PCI IRQ.
      
      This patch should be backported to kernels as old as 2.6.32.
      Signed-off-by: NAlex Shi <alex.shi@intel.com>
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Cc: stable@vger.kernel.org
      68d07f64
  3. 11 2月, 2012 1 次提交
    • S
      xhci: Fix oops caused by more USB2 ports than USB3 ports. · 3278a55a
      Sarah Sharp 提交于
      The code to set the device removable bits in the USB 2.0 roothub
      descriptor was accidentally looking at the USB 3.0 port registers
      instead of the USB 2.0 registers.  This can cause an oops if there are
      more USB 2.0 registers than USB 3.0 registers.
      
      This should be backported to kernels as old as 2.6.39, that contain the
      commit 4bbb0ace "xhci: Return a USB 3.0
      hub descriptor for USB3 roothub."
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Cc: stable@vger.kernel.org
      3278a55a
  4. 04 2月, 2012 1 次提交
  5. 03 2月, 2012 6 次提交
    • C
      usb: musb: fix a build error on mips · 976d98cb
      Cong Wang 提交于
      On mips, we got:
      
      drivers/usb/musb/musb_io.h:44: error: conflicting types for 'readsl'
      arch/mips/include/asm/io.h:529: error: previous definition of 'readsl' was here
      drivers/usb/musb/musb_io.h:46: error: conflicting types for 'readsw'
      arch/mips/include/asm/io.h:528: error: previous definition of 'readsw' was here
      drivers/usb/musb/musb_io.h:48: error: conflicting types for 'readsb'
      
      so, should add !defined(CONFIG_MIPS) too.
      
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NWANG Cong <xiyou.wangcong@gmail.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      976d98cb
    • R
      uwb & wusb & usb wireless controllers: fix kconfig error & build errors · 36f8ecbf
      Randy Dunlap 提交于
      Fix kconfig warnings and build errors in UWB/WUSB/USB_HWA etc.
      by making all of these related symbols depend on UWB.
      
      warning: (USB_WHCI_HCD && USB_HWA_HCD) selects USB_WUSB which has unmet direct dependencies (USB_SUPPORT && EXPERIMENTAL && USB && PCI && UWB)
      warning: (USB_HWA_HCD) selects UWB_HWA which has unmet direct dependencies (UWB && USB)
      
      which lead to:
      
      ERROR: "uwb_rsv_establish" [drivers/usb/wusbcore/wusbcore.ko] undefined!
      ERROR: "uwb_pal_register" [drivers/usb/wusbcore/wusbcore.ko] undefined!
      ERROR: "uwb_rsv_get_usable_mas" [drivers/usb/wusbcore/wusbcore.ko] undefined!
      ERROR: "uwb_rsv_destroy" [drivers/usb/wusbcore/wusbcore.ko] undefined!
      ERROR: "uwb_radio_stop" [drivers/usb/wusbcore/wusbcore.ko] undefined!
      ERROR: "uwb_rsv_terminate" [drivers/usb/wusbcore/wusbcore.ko] undefined!
      ERROR: "uwb_pal_unregister" [drivers/usb/wusbcore/wusbcore.ko] undefined!
      ERROR: "uwb_pal_init" [drivers/usb/wusbcore/wusbcore.ko] undefined!
      ERROR: "uwb_rc_reset_all" [drivers/usb/wusbcore/wusbcore.ko] undefined!
      ERROR: "uwb_radio_start" [drivers/usb/wusbcore/wusbcore.ko] undefined!
      ERROR: "uwb_rsv_create" [drivers/usb/wusbcore/wusbcore.ko] undefined!
      ERROR: "uwb_rc_put" [drivers/usb/host/whci/whci-hcd.ko] undefined!
      ERROR: "uwb_rc_get_by_grandpa" [drivers/usb/host/whci/whci-hcd.ko] undefined!
      ERROR: "__umc_driver_register" [drivers/usb/host/whci/whci-hcd.ko] undefined!
      ERROR: "umc_driver_unregister" [drivers/usb/host/whci/whci-hcd.ko] undefined!
      ERROR: "whci_wait_for" [drivers/usb/host/whci/whci-hcd.ko] undefined!
      ERROR: "uwb_rc_get_by_grandpa" [drivers/usb/host/hwa-hc.ko] undefined!
      ERROR: "uwb_rc_put" [drivers/usb/host/hwa-hc.ko] undefined!
      Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      36f8ecbf
    • J
      usb: Skip PCI USB quirk handling for Netlogic XLP · e4436a7c
      Jayachandran C 提交于
      The Netlogic XLP SoC's on-chip USB controller appears as a PCI
      USB device, but does not need the EHCI/OHCI handoff done in
      usb/host/pci-quirks.c.
      
      The pci-quirks.c is enabled for all vendors and devices, and is
      enabled if USB and PCI are configured.
      
      If we do not skip the qurik handling on XLP, the readb() call in
      ehci_bios_handoff() will cause a crash since byte access is not
      supported for EHCI registers in XLP.
      Signed-off-by: NJayachandran C <jayachandranc@netlogicmicro.com>
      Cc: stable <stable@vger.kernel.org>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e4436a7c
    • S
      powerpc/usb: fix issue of CPU halt when missing USB PHY clock · 529febee
      Shengzhou Liu 提交于
      when missing USB PHY clock, kernel booting up will halt during USB
      initialization. We should check USBGP[PHY_CLK_VALID] bit to avoid
      CPU hang in this case.
      Signed-off-by: NShengzhou Liu <Shengzhou.Liu@freescale.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      529febee
    • N
      usb: otg: mv_otg: Add dependence · ed2833ac
      Neil Zhang 提交于
      This otg driver depends on marvell EHCI driver, so add the dependence.
      It can fix the following build error on i386:
      
      ERROR: "usb_remove_hcd" [drivers/usb/otg/mv_otg.ko] undefined!
      ERROR: "usb_add_hcd" [drivers/usb/otg/mv_otg.ko] undefined!
      Signed-off-by: NNeil Zhang <zhangwm@marvell.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ed2833ac
    • F
      usb: host: Distinguish Kconfig text for Freescale controllers · c0ca9bc5
      Fabio Estevam 提交于
      Distinguish Kconfig text by providing the Freescale family name.
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c0ca9bc5
  6. 02 2月, 2012 3 次提交
  7. 30 1月, 2012 2 次提交
  8. 27 1月, 2012 3 次提交
  9. 26 1月, 2012 1 次提交
  10. 25 1月, 2012 18 次提交