1. 27 4月, 2016 15 次提交
  2. 20 4月, 2016 1 次提交
  3. 19 4月, 2016 4 次提交
    • S
      usb: wusbcore: remove unreachable code · 7ce04cff
      Sudip Mukherjee 提交于
      The call to wusb_dev_sysfs_rm() which is just after return will never
      be executed. On checking the code, wusb_dev_sysfs_add() is the last one
      to be executed so even if that fails we do not need wusb_dev_sysfs_rm()
      in the error path.
      Signed-off-by: NSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7ce04cff
    • N
      usbip: event handler as one thread · bb7871ad
      Nobuo Iwata 提交于
      Dear all,
      
      1. Overview
      
      In current USB/IP implementation, event kernel threads are created for
      each port. The functions of the threads are closing connection and
      error handling so they don't have not so many events to handle. There's
      no need to have thread for each port.
      
      BEFORE) vhci side - VHCI_NPORTS(8) threads are created.
      $ ps aux | grep usbip
      root     10059  0.0  0.0      0     0 ?        S    17:06   0:00 [usbip_eh]
      root     10060  0.0  0.0      0     0 ?        S    17:06   0:00 [usbip_eh]
      root     10061  0.0  0.0      0     0 ?        S    17:06   0:00 [usbip_eh]
      root     10062  0.0  0.0      0     0 ?        S    17:06   0:00 [usbip_eh]
      root     10063  0.0  0.0      0     0 ?        S    17:06   0:00 [usbip_eh]
      root     10064  0.0  0.0      0     0 ?        S    17:06   0:00 [usbip_eh]
      root     10065  0.0  0.0      0     0 ?        S    17:06   0:00 [usbip_eh]
      root     10066  0.0  0.0      0     0 ?        S    17:06   0:00 [usbip_eh]
      
      BEFORE) stub side - threads will be created every bind operation.
      $ ps aux | grep usbip
      root      8368  0.0  0.0      0     0 ?        S    17:56   0:00 [usbip_eh]
      root      8399  0.0  0.0      0     0 ?        S    17:56   0:00 [usbip_eh]
      
      This patch put event threads of stub and vhci driver as one workqueue.
      
      AFTER) only one event threads in each vhci and stub side.
      $ ps aux | grep usbip
      root     10457  0.0  0.0      0     0 ?        S<   17:47   0:00 [usbip_event]
      
      2. Modification to usbip_event.c
      
      BEFORE) kernel threads are created in usbip_start_eh().
      
      AFTER) one workqueue is created in new usbip_init_eh().
      
      Event handler which was main loop of kernel thread is modified to
      workqueue handler.
      
      Events themselves are stored in struct usbip_device - same as before.
      usbip_devices which have event are listed in event_list.
      
      The handler picks an element from the list and wakeup usbip_device. The
      wakeup method is same as before.
      
      usbip_in_eh() substitutes statement which checks whether functions are
      called from eh_ops or not. In this function, the worker context is used
      for the checking. The context will be set in a variable in the
      beginning of first event handling. usbip_in_eh() is used in event
      handler so it works well.
      
      3. Modifications to programs using usbip_event.c
      
      Initialization and termination of workqueue are added to init and exit
      routine of usbip_core respectively.
      
      A. version info
      
      v2)
      # Merged 1/2 event handler itself and 2/2 user programs because of auto
      build fail at 1/2 casued unmodified user programs in 1/2.
      Signed-off-by: NNobuo Iwata <nobuo.iwata@fujixerox.co.jp>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      bb7871ad
    • A
      USB: whci-hcd: add more checks for dma mapping error · e352506e
      Alexey Khoroshilov 提交于
      Fixing checks for dma mapping error in qset_fill_page_list(),
      I have missed two similar problems in qset_add_urb_sg() and
      in qset_add_urb_sg_linearize().
      
      v2: check validity of dma_addr with dma_mapping_error()
      in qset_free_std() as suggested by Vladimir Zapolskiy.
      
      Found by Linux Driver Verification project (linuxtesting.org).
      Signed-off-by: NAlexey Khoroshilov <khoroshilov@ispras.ru>
      Reviewed-by: NVladimir Zapolskiy <vz@mleia.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e352506e
    • R
      xhci: fix typo in babble endpoint handling comment · d4fc8bf5
      Rajesh Bhagat 提交于
      The 0.95 xHCI spec says that non-control endpoints will be halted if a
      babble is detected on a transfer.  The 0.96 xHCI spec says all types of
      endpoints will be halted when a babble is detected.  Some hardware that
      claims to be 0.95 compliant halts the control endpoint anyway.
      
      Reference: http://www.spinics.net/lists/linux-usb/msg21755.htmlSigned-off-by: NRajesh Bhagat <rajesh.bhagat@nxp.com>
      Reviewed-by: NFelipe Balbi <balbi@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d4fc8bf5
  4. 18 4月, 2016 5 次提交
  5. 14 4月, 2016 11 次提交
  6. 07 4月, 2016 3 次提交
  7. 06 4月, 2016 1 次提交