1. Mar 21, 2013
    • Greg Kroah-Hartman's avatar
      Merge branch 'usb-linus' into usb-next · cf2d9500
      Greg Kroah-Hartman authored
      
      
      This is to pick up the fixes in that branch, and let Alan fix the merge
      error in drivers/usb/host/ehci-timer.c better than I just did (as I know
      I messed it up...)
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      cf2d9500
    • Alan Stern's avatar
      USB: EHCI: fix regression in QH unlinking · d714aaf6
      Alan Stern authored
      This patch (as1670) fixes a regression caused by commit
      6402c796
      
       (USB: EHCI: work around
      silicon bug in Intel's EHCI controllers).  The workaround goes through
      two IAA cycles for each QH being unlinked.  During the first cycle,
      the QH is not added to the async_iaa list (because it isn't fully gone
      from the hardware yet), which means that list will be empty.
      
      Unfortunately, I forgot to update the IAA watchdog timer routine.  It
      thinks that an empty async_iaa list means the timer expiration was an
      error, which isn't true any more.  This problem didn't show up during
      initial testing because the controllers being tested all had working
      IAA interrupts.  But not all controllers do, and when the watchdog
      timer expires, the empty-list check prevents the second IAA cycle from
      starting.  As a result, URB unlinks never complete.  The check needs
      to be removed.
      
      Among the symptoms of the regression are processes stuck in D wait
      states and hangs during system shutdown.
      
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Reported-and-tested-by: default avatarStephen Warren <swarren@wwwdotorg.org>
      Reported-and-tested-by: default avatarSven Joachim <svenjoac@gmx.de>
      Reported-by: default avatarAndreas Bombe <aeb@debian.org>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d714aaf6
  2. Mar 19, 2013
  3. Mar 18, 2013
    • Dmitry Torokhov's avatar
      USB: xhci - fix bit definitions for IMAN register · f8264340
      Dmitry Torokhov authored
      According to XHCI specification (5.5.2.1) the IP is bit 0 and IE is bit 1
      of IMAN register. Previously their definitions were reversed.
      
      Even though there are no ill effects being observed from the swapped
      definitions (because IMAN_IP is RW1C and in legacy PCI case we come in
      with it already set to 1 so it was clearing itself even though we were
      setting IMAN_IE instead of IMAN_IP), we should still correct the values.
      
      This patch should be backported to kernels as old as 2.6.36, that
      contain the commit 4e833c0b
      
       "xhci: don't
      re-enable IE constantly".
      
      Signed-off-by: default avatarDmitry Torokhov <dtor@vmware.com>
      Signed-off-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
      Cc: stable@vger.kernel.org
      f8264340
  4. Mar 16, 2013
  5. Mar 15, 2013
    • Michel Lespinasse's avatar
      mm/fremap.c: fix possible oops on error path · a2362d24
      Michel Lespinasse authored
      The vm_flags introduced in 6d7825b1
      
       ("mm/fremap.c: fix oops on error
      path") is supposed to avoid a compiler warning about unitialized
      vm_flags without changing the generated code.
      
      However I am concerned that this is going to be very brittle, and fail
      with some compiler versions. The failure could be either of:
      
      - compiler could actually load vma->vm_flags before checking for the
        !vma condition, thus reintroducing the oops
      
      - compiler could optimize out the !vma check, since the pointer just got
        dereferenced shortly before (so the compiler knows it can't be NULL!)
      
      I propose reversing this part of the change and initializing vm_flags to 0
      just to avoid the bogus uninitialized use warning.
      
      Signed-off-by: default avatarMichel Lespinasse <walken@google.com>
      Cc: Tommi Rantala <tt.rantala@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a2362d24