1. 22 Aug, 2011 2 commits
    • Greg Kroah-Hartman's avatar
      Merge branch 'for-greg' of master.kernel.org:/pub/scm/linux/kernel/git/balbi/usb into usb-linus · b978d51a
      Greg Kroah-Hartman authored
      * 'for-greg' of master.kernel.org:/pub/scm/linux/kernel/git/balbi/usb:
        usb: musb: gadget: fix error path
        usb: gadget: f_phonet: unlock in error case
        usb: musb: blackfin: include prefetch head file
        usb: musb: tusb6010: fix compilation
        usb: gadget: renesas_usbhs: fix DMA build by including dma-mapping.h
        usb: musb: cppi: fix build errors due to DBG and missing musb variable
        usb: musb: ux500: replace missing DBG with dev_dbg
        usb: musb: ux500: set dma config for both src and dst
        usb: musb: fix oops on musb_gadget_pullup
        usb: host: ehci-omap: fix .remove and failure handling path of .probe(v1)
        usb: gadget: hid: don't STALL when processing a HID Descriptor request
        usb: musb: fix Kconfig
        usb: musb: tusb6010_omap: fix build failure: error: 'musb' undeclared
        usb: gadget: composite: fix bMaxPacketSize for SuperSpeed
        usb: gadget: fusb300: remove #if 0 block
        usb: gadget: s3c2410_udc: fix unterminated platform_device_id table
      b978d51a
    • Greg Kroah-Hartman's avatar
      Merge branch 'for-usb-linus' of... · ea8c7fd9
      Greg Kroah-Hartman authored
      Merge branch 'for-usb-linus' of git+ssh://master.kernel.org/pub/scm/linux/kernel/git/sarah/xhci into usb-linus
      
      * 'for-usb-linus' of git+ssh://master.kernel.org/pub/scm/linux/kernel/git/sarah/xhci:
        xhci: Handle zero-length isochronous packets.
        USB: Avoid NULL pointer deref in usb_hcd_alloc_bandwidth.
        xhci: Remove TDs from TD lists when URBs are canceled.
        xhci: Fix failed enqueue in the middle of isoch TD.
        xhci: Fix memory leak during failed enqueue.
        xHCI: report USB2 port in resuming as suspend
        xHCI: fix port U3 status check condition
      ea8c7fd9
  2. 16 Aug, 2011 1 commit
    • Sarah Sharp's avatar
      xhci: Handle zero-length isochronous packets. · 48df4a6f
      Sarah Sharp authored
      For a long time, the xHCI driver has had this note:
      	/* FIXME: Ignoring zero-length packets, can those happen? */
      
      It turns out that, yes, there are drivers that need to queue zero-length
      transfers for isochronous OUT transfers.  Without this patch, users will
      see kernel hang messages when a driver attempts to enqueue an isochronous
      URB with a zero length transfer (because count_isoc_trbs_needed will return
      zero for that TD, xhci_td->last_trb will never be set, and updating the
      dequeue pointer will cause an infinite loop).
      
      Matěj ran into this issue when using an NI Audio4DJ USB soundcard
      with the snd-usb-caiaq driver.  See
      	https://bugzilla.kernel.org/show_bug.cgi?id=40702
      
      Fix count_isoc_trbs_needed() to return 1 for zero-length transfers (thanks
      Alan on the math help).  Update the various TRB field calculations to deal
      with zero-length transfers.  We're still transferring one packet with a
      zero-length data payload, so the total_packet_count should be 1. The
      Transfer Burst Count (TBC) and Transfer Last Burst Packet Count (TLBPC)
      fields should be set to zero.
      
      This patch should be backported to kernels as old as 2.6.36.
      Signed-off-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
      Tested-by: default avatarMatěj Laitl <matej@laitl.cz>
      Cc: Daniel Mack <zonque@gmail.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: stable@kernel.org
      48df4a6f
  3. 15 Aug, 2011 2 commits
  4. 14 Aug, 2011 13 commits
  5. 13 Aug, 2011 22 commits