1. 01 3月, 2014 1 次提交
  2. 09 1月, 2014 1 次提交
  3. 08 1月, 2014 8 次提交
  4. 21 12月, 2013 1 次提交
  5. 18 12月, 2013 1 次提交
  6. 10 12月, 2013 4 次提交
  7. 09 12月, 2013 3 次提交
  8. 03 12月, 2013 3 次提交
    • T
      usb: wusbcore: fix deadlock in wusbhc_gtk_rekey · 471e42ad
      Thomas Pugliese 提交于
      When multiple wireless USB devices are connected and one of the devices
      disconnects, the host will distribute a new group key to the remaining
      devicese using wusbhc_gtk_rekey.  wusbhc_gtk_rekey takes the
      wusbhc->mutex and holds it while it submits a URB to set the new key.
      This causes a deadlock in wa_urb_enqueue when it calls a device lookup
      helper function that takes the same lock.
      
      This patch changes wusbhc_gtk_rekey to submit a work item to set the GTK
      so that the URB is submitted without holding wusbhc->mutex.
      Signed-off-by: NThomas Pugliese <thomas.pugliese@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      471e42ad
    • T
      usb: wusbcore: do device lookup while holding the hc mutex · 6161ae5f
      Thomas Pugliese 提交于
      This patch modifies the device notification handler to not look up the
      wusb_dev object before it calls the lower-level handler routines since
      the wusbhc mutex is not held when calling those routines and the device
      could go away in the meantime.  Instead, let the individual notification
      handlers get the device ptr if they need to after they have taken the
      mutex.
      Signed-off-by: NThomas Pugliese <thomas.pugliese@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6161ae5f
    • T
      usb: wusbcore: send keepalives to unauthenticated devices · f4042c06
      Thomas Pugliese 提交于
      This patch modifies the WUSB device disconnect timer code to send
      keepalives to all connected devices even if they are not authenticated.
      This fixes a problem where unauthenticated devices that lose their
      connection before they are authenticated will stay in the device tree
      forever.  More importantly, devices in this situation will never
      relinquish their port on the root hub so eventually all root ports will
      be taken up and no other devices can connect.
      
      A comment in the existing code states that there are some devices that
      may not respond to keepalives if they have not been authenticated.  That
      comment is about 5 years old and I don't know of any WUSB devices that
      act that way.  Either way, any buggy devices that may still be around
      will continue to work as long as they can transition to the
      authenticated state within the WUSB LOA timeout of 4s, which is not
      unreasonable to expect.
      Signed-off-by: NThomas Pugliese <thomas.pugliese@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f4042c06
  9. 30 10月, 2013 4 次提交
  10. 20 10月, 2013 1 次提交
  11. 19 10月, 2013 2 次提交
  12. 12 10月, 2013 1 次提交
  13. 07 10月, 2013 1 次提交
  14. 06 10月, 2013 1 次提交
    • T
      usb: wusbcore: add support for isoc out transfers · 7a32d9be
      Thomas Pugliese 提交于
      This patch adds support for isochronous out transfers to the HWA.  The
      primary changes are:
      
      1.  Add a isoc_pack_desc_urb field to struct wa_seg.  This urb is used
      to send the isochronous packet info message to the HWA which describes
      the isoc data segment(s) that will be sent as the payload of the
      transfer request.
      
      2.  Use the URB iso_frame_desc field to populate the isochronous packet
      info message and data segments sent to the HWA.
      
      3.  After the data is sent and transfer result is returned from the
      HWA, read the isoc packet status message from the HWA.  The contents of
      the isoc packet status message are used to set the iso_frame_desc
      status and actual_length fields in the original isoc URB.  This feature
      required the addition of a some state tracking variables in struct wahc
      so the dti_urb knows what type of packet it expects to receive next.
      Signed-off-by: NThomas Pugliese <thomas.pugliese@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7a32d9be
  15. 04 10月, 2013 2 次提交
  16. 01 10月, 2013 4 次提交
  17. 27 9月, 2013 2 次提交