1. 16 Oct, 2013 2 commits
    • Sarah Sharp's avatar
      xhci: Set L1 device slot on USB2 LPM enable/disable. · 58e21f73
      Sarah Sharp authored
      To enable USB 2.0 Link Power Management (LPM), the xHCI host controller
      needs the device slot ID to generate the device address used in L1 entry
      tokens.  That information is set in the L1 device slot ID field of the
      USB 2.0 LPM registers.
      
      Currently, the L1 device slot ID is overwritten when the xHCI driver
      initiates the software test of USB 2.0 Link PM in
      xhci_usb2_software_lpm_test.  It is never cleared when USB 2.0 Link PM
      is disabled for the device.  That should be harmless, because the
      Hardware LPM Enable (HLE) bit is cleared when USB 2.0 Link PM is
      disabled, so the host should not pay attention to the slot ID.
      
      This patch should have no effect on host behavior, but since
      xhci_usb2_software_lpm_test is going away in an upcoming bug fix patch,
      we need to move that code to the function that enables and disables USB
      2.0 Link PM.
      
      This patch should be backported to kernels as old as 3.11, that contain
      the commit a558ccdc "usb: xhci: add USB2
      Link power management BESL support".  The upcoming bug fix patch is also
      marked for that stable kernel.
      Signed-off-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
      Cc: stable@vger.kernel.org
      58e21f73
    • Sarah Sharp's avatar
      usb: Disable USB 2.0 Link PM before device reset. · dcc01c08
      Sarah Sharp authored
      Before the USB core resets a device, we need to disable the L1 timeout
      for the roothub, if USB 2.0 Link PM is enabled.  Otherwise the port may
      transition into L1 in between descriptor fetches, before we know if the
      USB device descriptors changed.  LPM will be re-enabled after the
      full device descriptors are fetched, and we can confirm the device still
      supports USB 2.0 LPM after the reset.
      
      We don't need to wait for the USB device to exit L1 before resetting the
      device, since the xHCI roothub port diagrams show a transition to the
      Reset state from any of the Ux states (see Figure 34 in the 2012-08-14
      xHCI specification update).
      
      This patch should be backported to kernels as old as 3.2, that contain
      the commit 65580b43 "xHCI: set USB2
      hardware LPM".  That was the first commit to enable USB 2.0
      hardware-driven Link Power Management.
      Signed-off-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
      Cc: stable@vger.kernel.org
      dcc01c08
  2. 14 Oct, 2013 11 commits
    • Jingoo Han's avatar
      USB: ohci-exynos: Remove non-DT support · c00809d3
      Jingoo Han authored
      The non-DT for EXYNOS SoCs is not supported from v3.11.
      Thus, there is no need to support non-DT for Exynos OHCI driver.
      
      The 'include/linux/platform_data/usb-ohci-exynos.h' file has been
      used for non-DT support. Thus, the 'usb-ohci-exynos.h' file can
      be removed.
      Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c00809d3
    • Michael Opdenacker's avatar
      usb/hcd: remove unnecessary local_irq_save · 88ed9fd5
      Michael Opdenacker authored
      Remove the use of local_irq_save() and IRQF_DISABLED, no longer needed since
      interrupt handlers are always run with interrupts disabled on the
      current CPU.
      
      Tested successfully with 3.12.0-rc4 on my PC. Didn't find
      any issue because of this change.
      Signed-off-by: default avatarMichael Opdenacker <michael.opdenacker@free-electrons.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      88ed9fd5
    • Alan Stern's avatar
      USB: EHCI: start new isochronous streams ASAP · a393a807
      Alan Stern authored
      This patch changes the initial delay before the startup of a newly
      scheduled isochronous stream.  Currently the stream doesn't start
      for at least 5 ms (40 microframes).  This value is just an estimate;
      it has no real justification.
      
      Instead, we can start the stream as soon as possible after the
      scheduling computations are complete.  Essentially this requires
      nothing more than reading the frame counter after the stream is
      scheduled, instead of before.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a393a807
    • Alan Stern's avatar
      USB: EHCI: create per-TT bandwidth tables · b35c5009
      Alan Stern authored
      This patch continues the scheduling changes in ehci-hcd by adding a
      table to store the bandwidth allocation below each TT.  This will
      speed up the scheduling code, as it will no longer need to read
      through the entire schedule to compute the bandwidth currently in use.
      
      Properly speaking, the FS/LS budget calculations should be done in
      terms of full-speed bytes per microframe, as described in the USB-2
      spec.  However the driver currently uses microseconds per microframe,
      and the scheduling code isn't robust enough at this point to change
      over.  For the time being, we leave the calculations as they are.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b35c5009
    • Greg Kroah-Hartman's avatar
      Revert "USB: OHCI: Properly handle OHCI controller suspend" · ca1ad0ff
      Greg Kroah-Hartman authored
      This reverts commit 476e4bf9.
      
      Manjunath is no longer at Linaro, the email address bounces.  Given
      that, and the fact that others have reported problems with these
      patches, I'm reverting them until someone from Linaro who can SUPPORT
      THEM submits them.
      
      I will no longer accept patches from linaro.com developers unless a
      senior Linaro developer has signed off on them, which did not happen
      with this patch set.
      Reported-by: default avatarOlof Johansson <olof@lixom.net>
      Cc: Manjunath Goudar <manjunath.goudar@linaro.org>
      Cc: Manjunath Goudar <csmanjuvijay@gmail.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Arnd Bergmann <arnd@arndb.de>
      ca1ad0ff
    • Greg Kroah-Hartman's avatar
      Revert "USB: OHCI: Properly handle ohci-at91 suspend" · 118cb990
      Greg Kroah-Hartman authored
      This reverts commit 056ca85d.
      
      Manjunath is no longer at Linaro, the email address bounces.  Given
      that, and the fact that others have reported problems with these
      patches, I'm reverting them until someone from Linaro who can SUPPORT
      THEM submits them.
      
      I will no longer accept patches from linaro.com developers unless a
      senior Linaro developer has signed off on them, which did not happen
      with this patch set.
      Reported-by: default avatarOlof Johansson <olof@lixom.net>
      Cc: Manjunath Goudar <manjunath.goudar@linaro.org>
      Cc: Manjunath Goudar <csmanjuvijay@gmail.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Arnd Bergmann <arnd@arndb.de>
      118cb990
    • Greg Kroah-Hartman's avatar
      Revert "USB: OHCI: Properly handle ohci-s3c2410 suspend" · ba8d400e
      Greg Kroah-Hartman authored
      This reverts commit 19d33943.
      
      Manjunath is no longer at Linaro, the email address bounces.  Given
      that, and the fact that others have reported problems with these
      patches, I'm reverting them until someone from Linaro who can SUPPORT
      THEM submits them.
      
      I will no longer accept patches from linaro.com developers unless a
      senior Linaro developer has signed off on them, which did not happen
      with this patch set.
      Reported-by: default avatarOlof Johansson <olof@lixom.net>
      Cc: Manjunath Goudar <manjunath.goudar@linaro.org>
      Cc: Manjunath Goudar <csmanjuvijay@gmail.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Arnd Bergmann <arnd@arndb.de>
      ba8d400e
    • Greg Kroah-Hartman's avatar
      Revert "USB: OHCI: Properly handle ohci-da8xx suspend" · 5d931288
      Greg Kroah-Hartman authored
      This reverts commit 86a63f10.
      
      Manjunath is no longer at Linaro, the email address bounces.  Given
      that, and the fact that others have reported problems with these
      patches, I'm reverting them until someone from Linaro who can SUPPORT
      THEM submits them.
      
      I will no longer accept patches from linaro.com developers unless a
      senior Linaro developer has signed off on them, which did not happen
      with this patch set.
      Reported-by: default avatarOlof Johansson <olof@lixom.net>
      Cc: Manjunath Goudar <manjunath.goudar@linaro.org>
      Cc: Manjunath Goudar <csmanjuvijay@gmail.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Arnd Bergmann <arnd@arndb.de>
      5d931288
    • Greg Kroah-Hartman's avatar
      Revert "USB: OHCI: Properly handle ohci-ep93xx suspend" · 848b5b5e
      Greg Kroah-Hartman authored
      This reverts commit 018258b4.
      
      Manjunath is no longer at Linaro, the email address bounces.  Given
      that, and the fact that others have reported problems with these
      patches, I'm reverting them until someone from Linaro who can SUPPORT
      THEM submits them.
      
      I will no longer accept patches from linaro.com developers unless a
      senior Linaro developer has signed off on them, which did not happen
      with this patch set.
      Reported-by: default avatarOlof Johansson <olof@lixom.net>
      Cc: Manjunath Goudar <manjunath.goudar@linaro.org>
      Cc: Manjunath Goudar <csmanjuvijay@gmail.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Arnd Bergmann <arnd@arndb.de>
      848b5b5e
    • Greg Kroah-Hartman's avatar
      Revert "USB: OHCI: Properly handle ohci-exynos suspend" · 066ba8e0
      Greg Kroah-Hartman authored
      This reverts commit fea0896f.
      
      Manjunath is no longer at Linaro, the email address bounces.  Given
      that, and the fact that others have reported problems with these
      patches, I'm reverting them until someone from Linaro who can SUPPORT
      THEM submits them.
      
      I will no longer accept patches from linaro.com developers unless a
      senior Linaro developer has signed off on them, which did not happen
      with this patch set.
      Reported-by: default avatarOlof Johansson <olof@lixom.net>
      Cc: Manjunath Goudar <manjunath.goudar@linaro.org>
      Cc: Manjunath Goudar <csmanjuvijay@gmail.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Arnd Bergmann <arnd@arndb.de>
      066ba8e0
    • Greg Kroah-Hartman's avatar
      Revert "USB: OHCI: Properly handle ohci-spear suspend" · 3de80bfc
      Greg Kroah-Hartman authored
      This reverts commit 36a87587.
      
      Manjunath is no longer at Linaro, the email address bounces.  Given
      that, and the fact that others have reported problems with these
      patches, I'm reverting them until someone from Linaro who can SUPPORT
      THEM submits them.
      
      I will no longer accept patches from linaro.com developers unless a
      senior Linaro developer has signed off on them, which did not happen
      with this patch set.
      Reported-by: default avatarOlof Johansson <olof@lixom.net>
      Cc: Manjunath Goudar <manjunath.goudar@linaro.org>
      Cc: Manjunath Goudar <csmanjuvijay@gmail.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Arnd Bergmann <arnd@arndb.de>
      3de80bfc
  3. 12 Oct, 2013 7 commits
  4. 11 Oct, 2013 20 commits