1. 05 10月, 2017 1 次提交
  2. 04 10月, 2017 17 次提交
  3. 18 9月, 2017 4 次提交
  4. 05 9月, 2017 1 次提交
  5. 04 9月, 2017 1 次提交
  6. 01 9月, 2017 6 次提交
  7. 30 8月, 2017 2 次提交
    • B
      USB: serial: option: simplify 3 D-Link device entries · b5fdde28
      Bjørn Mork 提交于
      All the vendor specific interfaces on these devices are serial
      functions handled by this driver, so we can use a single class
      match entry for each.
      
       P:  Vendor=2001 ProdID=7d01 Rev= 3.00
       S:  Manufacturer=D-Link,Inc
       S:  Product=D-Link DWM-156
       C:* #Ifs= 7 Cfg#= 1 Atr=a0 MxPwr=500mA
       A:  FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00
       I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim
       E:  Ad=88(I) Atr=03(Int.) MxPS=  64 Ivl=125us
       I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
       I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
       E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
       E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
       I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=01 Driver=option
       E:  Ad=87(I) Atr=03(Int.) MxPS=  64 Ivl=500us
       E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
       E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
       I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
       E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
       E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
       I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
       E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
       E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
       I:* If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
       E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
       E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
       I:* If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
       E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
       E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      b5fdde28
    • M
      USB: serial: option: add support for D-Link DWM-157 C1 · 169e8654
      Maciej S. Szmigiero 提交于
      This commit adds support (an ID, really) for D-Link DWM-157 hardware
      version C1 USB modem to option driver.
      
      According to manufacturer-provided Windows INF file the device has four
      serial ports:
      "D-Link HSPA+DataCard Diagnostics Interface" (interface 2; modem port),
      "D-Link HSPA+DataCard NMEA Device" (interface 3),
      "D-Link HSPA+DataCard Speech Port" (interface 4),
      "D-Link HSPA+DataCard Debug Port" (interface 5).
      
      usb-devices output:
      T:  Bus=05 Lev=01 Prnt=01 Port=04 Cnt=01 Dev#=  3 Spd=480 MxCh= 0
      D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
      P:  Vendor=2001 ProdID=7d0e Rev=03.00
      S:  Manufacturer=D-Link,Inc
      S:  Product=D-Link DWM-157
      C:  #Ifs= 7 Cfg#= 1 Atr=a0 MxPwr=500mA
      I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim
      I:  If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
      I:  If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=01 Driver=option
      I:  If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
      Signed-off-by: NMaciej S. Szmigiero <mail@maciej.szmigiero.name>
      Cc: stable@vger.kernel.org
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      169e8654
  8. 29 8月, 2017 1 次提交
    • C
      usb: core: usbport: fix "BUG: key not in .data" when lockdep is enabled · aa759365
      Christian Lamparter 提交于
      This patch fixes a splat that happens if CONFIG_DEBUG_LOCK_ALLOC
      is enabled and the ledtrig_usbport is loaded. (on a device that
      has some usb ports).
      
      [   60.695479] BUG: key c53f8420 not in .data!
      [   60.695521] ------------[ cut here ]------------
      [   60.698542] WARNING: CPU: 1 PID: 854 at kernel/locking/lockdep.c:3134 __kernfs_create_file+0x5c/0xc0
      [   60.703355] DEBUG_LOCKS_WARN_ON(1)
      [   60.712534] Modules linked in:
      [   60.944078] CPU: 1 PID: 854 Comm: S96led Not tainted 4.9.44 #0
      [   60.944329] Hardware name: Generic DT based system
      [   60.950106] [<c021585c>] (unwind_backtrace) from [<c0212150>] (show_stack+0x10/0x14)
      [   60.954878] [<c0212150>] (show_stack) from [<c03a2bc4>] (dump_stack+0x7c/0x9c)
      [   60.962772] [<c03a2bc4>] (dump_stack) from [<c021db34>] (__warn+0xbc/0xec)
      [   60.969799] [<c021db34>] (__warn) from [<c021db98>] (warn_slowpath_fmt+0x34/0x44)
      [   60.976656] [<c021db98>] (warn_slowpath_fmt)
      [   60.984210] [<c0320688>] (__kernfs_create_file)
      [   60.992712] [<c0320ef0>] (sysfs_add_file_mode_ns)
      [   61.002090] [<c0321044>] (sysfs_add_file) from
      [   61.010619] [<c0321094>] (sysfs_add_file_to_group)
      [   61.019263] [<bf24a47c>] (usbport_trig_add_usb_dev_ports [ledtrig_usbport])
      [   61.031002] [<c0430414>] (bus_for_each_dev)
      [   61.042106] [<c0497dc4>] (usb_for_each_dev)
      [   61.050375] [<bf24a2ac>] (usbport_trig_activate [ledtrig_usbport])
      [   61.060685] [<c04e1708>] (led_trigger_set) from [<c04e1834>]
      [...]
      Signed-off-by: NChristian Lamparter <chunkeey@googlemail.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      aa759365
  9. 28 8月, 2017 7 次提交
    • C
      usb: chipidea: usb2: check memory allocation failure · 49ca2eff
      Christophe JAILLET 提交于
      Check memory allocation failure and return -ENOMEM in such a case, as
      already done few lines below for another memory allocation.
      Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      49ca2eff
    • D
      usb: Add device quirk for Logitech HD Pro Webcam C920-C · a1279ef7
      Dmitry Fleytman 提交于
      Commit e0429362
      ("usb: Add device quirk for Logitech HD Pro Webcams C920 and C930e")
      introduced quirk to workaround an issue with some Logitech webcams.
      
      Apparently model C920-C has the same issue so applying
      the same quirk as well.
      
      See aforementioned commit message for detailed explanation of the problem.
      Signed-off-by: NDmitry Fleytman <dmitry@daynix.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a1279ef7
    • J
      usb: misc: lvstest: add entry to place port in compliance mode · f624ec70
      Jack Pham 提交于
      Add support for the SuperSpeed Link Layer test case TD.7.34
      which requires the operator to place the port into compliance
      mode, and to subsequently bring it out via reset. Historically
      according to the (now deprecated) USB 3.0 specification a
      SuperSpeed host downstream port would automatically transition
      to Compliance mode from the Polling state if LFPS polling times
      out. However the language in USB 3.1 as well as xHCI 1.1 states
      it may be required to explicitly enable this transition. For
      such hosts this is done by sending a SET_FEATURE(PORT_LINK_STATE)
      with the state set to Compliance to the root hub port.
      
      Similar to the other supported commands, to do this via sysfs:
      
           echo  > /sys/bus/usb/devices/2-0\:1.0/enable_compliance
      
      According to xHCI 1.1 section 4.19.1.2.4.1, this enables the
      transition to compliance mode upon LFPS timeout. Note that this
      can only be issued when the port is in disconnected state. And
      in order to disable this behavior on subsequent transitions, a
      warm reset should be issued. So add another entry to do that:
      
           echo  > /sys/bus/usb/devices/2-0\:1.0/warm_reset
      
      In general these attributes can also be useful for other USB
      SuperSpeed compliance tests such as electrical and eye diagram
      testing which require CPn patterns to be transmitted.
      Signed-off-by: NJack Pham <jackp@codeaurora.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f624ec70
    • J
      usb: xhci: Support enabling of compliance mode for xhci 1.1 · 4b562bd2
      Jack Pham 提交于
      To perform SuperSpeed compliance testing the port should first
      be placed into compliance mode. For xHCI 1.0 and prior this
      transition happens automatically when the port is in Training
      and encounters an LFPS timeout. Thus running compliance tests
      against a test appliance may simply just work by simply plugging
      in to the downstream port.
      
      However starting with xHCI 1.1 the transition from Polling.LFPS
      to compliance mode may be disabled by default and needs to be
      explicitly enabled by writing to the PLS field of the PORTSC
      register, which sets an internal 'CTE' (Compliance Transition
      Enabled) flag so that the port will perform the transition the
      next time it encounters LFPS timeout. Whether this is disabled or
      not is determined by the 'CTC' (Compliance Transition Capability)
      bit in the HCCPARAMS2 capability register.
      
      In order to allow a test operator to change this if needed, allow
      a test driver (such as drivers/usb/misc/lvstest.c) to send a
      SET_FEATURE(PORT_LINK_STATE) control message to the root hub to
      update the link state prior to connecting to the port. Subsequently,
      placing the port in warm reset would then disable the flag.
      Signed-off-by: NJack Pham <jackp@codeaurora.org>
      Acked-by: NMathias Nyman <mathias.nyman@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4b562bd2
    • S
      usb:xhci:Fix regression when ATI chipsets detected · e6b422b8
      Sandeep Singh 提交于
      The following commit cause a regression on ATI chipsets.
      'commit e788787e ("usb:xhci:Add quirk for Certain
      failing HP keyboard on reset after resume")'
      
      This causes pinfo->smbus_dev to be wrongly set to NULL on
      systems with the ATI chipset that this function checks for first.
      
      Added conditional check for AMD chipsets to avoid the overwriting
      pinfo->smbus_dev.
      Reported-by: NBen Hutchings <ben@decadent.org.uk>
      Fixes: e788787e ("usb:xhci:Add quirk for Certain
      failing HP keyboard on reset after resume")
      cc: Nehal Shah <Nehal-bakulchandra.Shah@amd.com>
      cc: <stable@vger.kernel.org>
      Signed-off-by: NSandeep Singh <Sandeep.Singh@amd.com>
      Signed-off-by: NShyam Sundar S K <Shyam-sundar.S-k@amd.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e6b422b8
    • K
      usb: quirks: add delay init quirk for Corsair Strafe RGB keyboard · de3af5bf
      Kai-Heng Feng 提交于
      Corsair Strafe RGB keyboard has trouble to initialize:
      
      [ 1.679455] usb 3-6: new full-speed USB device number 4 using xhci_hcd
      [ 6.871136] usb 3-6: unable to read config index 0 descriptor/all
      [ 6.871138] usb 3-6: can't read configurations, error -110
      [ 6.991019] usb 3-6: new full-speed USB device number 5 using xhci_hcd
      [ 12.246642] usb 3-6: unable to read config index 0 descriptor/all
      [ 12.246644] usb 3-6: can't read configurations, error -110
      [ 12.366555] usb 3-6: new full-speed USB device number 6 using xhci_hcd
      [ 17.622145] usb 3-6: unable to read config index 0 descriptor/all
      [ 17.622147] usb 3-6: can't read configurations, error -110
      [ 17.742093] usb 3-6: new full-speed USB device number 7 using xhci_hcd
      [ 22.997715] usb 3-6: unable to read config index 0 descriptor/all
      [ 22.997716] usb 3-6: can't read configurations, error -110
      
      Although it may work after several times unpluging/pluging:
      
      [ 68.195240] usb 3-6: new full-speed USB device number 11 using xhci_hcd
      [ 68.337459] usb 3-6: New USB device found, idVendor=1b1c, idProduct=1b20
      [ 68.337463] usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [ 68.337466] usb 3-6: Product: Corsair STRAFE RGB Gaming Keyboard
      [ 68.337468] usb 3-6: Manufacturer: Corsair
      [ 68.337470] usb 3-6: SerialNumber: 0F013021AEB8046755A93ED3F5001941
      
      Tried three quirks: USB_QUIRK_DELAY_INIT, USB_QUIRK_NO_LPM and
      USB_QUIRK_DEVICE_QUALIFIER, user confirmed that USB_QUIRK_DELAY_INIT alone
      can workaround this issue. Hence add the quirk for Corsair Strafe RGB.
      
      BugLink: https://bugs.launchpad.net/bugs/1678477Signed-off-by: NKai-Heng Feng <kai.heng.feng@canonical.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      de3af5bf
    • B
      usb: gadget: make snd_pcm_hardware const · 2ab3c34c
      Bhumika Goyal 提交于
      Make this const as it is only used during a copy operation.
      Done using Coccinelle.
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2ab3c34c