1. 18 Nov, 2019 1 commit
    • Greg Kroah-Hartman's avatar
      Merge tag 'usb-for-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next · 7170d1a4
      Greg Kroah-Hartman authored
      Felipe writes:
      
      USB: changes for v5.5
      
      We have TI's glue layer for the Cadence USB3 controller going
      upstream. Tegra's XUDC driver is also going upstream with this pull
      request.
      
      Apart from these two big features, we have a bunch of patches switching
      over to devm_platform_ioremap_resource() in order to simplify code a
      little; and a non-critical fix for DWC3 usage via kexec.
      
      * tag 'usb-for-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb: (44 commits)
        usb: dwc3: of-simple: add a shutdown
        usb: cdns3: Add TI specific wrapper driver
        dt-bindings: usb: Add binding for the TI wrapper for Cadence USB3 controller
        usb: mtu3: fix race condition about delayed_status
        usb: gadget: Add UDC driver for tegra XUSB device mode controller
        usb: dwc3: debug: Remove newline printout
        usb: dwc2: use a longer core rest timeout in dwc2_core_reset()
        usb: gadget: udc: lpc32xx: Use devm_platform_ioremap_resource() in lpc32xx_udc_probe()
        USB: gadget: udc: clean up an indentation issue
        usb: gadget: Quieten gadget config message
        phy: renesas: rcar-gen3-usb2: Use platform_get_irq_optional() for optional irq
        usb: gadget: Remove set but not used variable 'opts' in msg_do_config
        usb: gadget: Remove set but not used variable 'opts' in acm_ms_do_config
        usb: mtu3: add a new function to do status stage
        usb: gadget: configfs: fix concurrent issue between composite APIs
        usb: gadget: f_tcm: Provide support to get alternate setting in tcm function
        usb: gadget: Correct NULL pointer checking in fsl gadget
        usb: fsl: Remove unused variable
        USB: dummy-hcd: use usb_urb_dir_in instead of usb_pipein
        USB: dummy-hcd: increase max number of devices to 32
        ...
      7170d1a4
  2. 16 Nov, 2019 5 commits
  3. 15 Nov, 2019 1 commit
    • Greg Kroah-Hartman's avatar
      Merge tag 'usb-serial-5.5-rc1' of... · 6e0f3060
      Greg Kroah-Hartman authored
      Merge tag 'usb-serial-5.5-rc1' of https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-next
      
      Johan writes:
      
      USB-serial updates for 5.5-rc1
      
      Here are the USB-serial updates for 5.5-rc1, including:
      
       - support for a new class of pl2303 devices
       - improved divisor calculations for ch341
       - fixes for a remote-wakeup bug in the moschip drivers
       - improved device-type handling in mos7840
       - various cleanups of mos7840
      
      Included are also some new device ids.
      
      All have been in linux-next with no reported issues.
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      
      * tag 'usb-serial-5.5-rc1' of https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial:
        USB: serial: ftdi_sio: add device IDs for U-Blox C099-F9P
        USB: serial: option: add support for Foxconn T77W968 LTE modules
        USB: serial: mos7840: drop port open flag
        USB: serial: mos7840: drop read-urb check
        USB: serial: mos7840: drop port driver data accessors
        USB: serial: mos7840: drop serial struct accessor
        USB: serial: mos7840: drop paranoid serial checks
        USB: serial: mos7840: drop paranoid port checks
        USB: serial: mos7840: drop redundant urb context check
        USB: serial: mos7840: rip out broken interrupt handling
        USB: serial: mos7840: fix probe error handling
        USB: serial: mos7840: document MCS7810 detection hack
        USB: serial: mos7840: clean up device-type handling
        USB: serial: mos7840: fix remote wakeup
        USB: serial: mos7720: fix remote wakeup
        USB: serial: option: add support for DW5821e with eSIM support
        USB: serial: mos7840: add USB ID to support Moxa UPort 2210
        USB: serial: ch341: reimplement line-speed handling
        USB: serial: pl2303: add support for PL2303HXN
      6e0f3060
  4. 14 Nov, 2019 12 commits
  5. 13 Nov, 2019 2 commits
    • Aleksander Morgado's avatar
      USB: serial: option: add support for Foxconn T77W968 LTE modules · f0797095
      Aleksander Morgado authored
      These are the Foxconn-branded variants of the Dell DW5821e modules,
      same USB layout as those. The device exposes AT, NMEA and DIAG ports
      in both USB configurations.
      
      P:  Vendor=0489 ProdID=e0b4 Rev=03.18
      S:  Manufacturer=FII
      S:  Product=T77W968 LTE
      S:  SerialNumber=0123456789ABCDEF
      C:  #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA
      I:  If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
      I:  If#=0x1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
      I:  If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#=0x5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
      
      P:  Vendor=0489 ProdID=e0b4 Rev=03.18
      S:  Manufacturer=FII
      S:  Product=T77W968 LTE
      S:  SerialNumber=0123456789ABCDEF
      C:  #Ifs= 7 Cfg#= 2 Atr=a0 MxPwr=500mA
      I:  If#=0x0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim
      I:  If#=0x1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
      I:  If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#=0x5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
      I:  If#=0x6 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
      Signed-off-by: default avatarAleksander Morgado <aleksander@aleksander.es>
      [ johan: drop id defines ]
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      f0797095
    • Suwan Kim's avatar
      usbip: Fix uninitialized symbol 'nents' in stub_recv_cmd_submit() · 2a912531
      Suwan Kim authored
      Smatch reported that nents is not initialized and used in
      stub_recv_cmd_submit(). nents is currently initialized by sgl_alloc()
      and used to allocate multiple URBs when host controller doesn't
      support scatter-gather DMA. The use of uninitialized nents means that
      buf_len is zero and use_sg is true. But buffer length should not be
      zero when an URB uses scatter-gather DMA.
      
      To prevent this situation, add the conditional that checks buf_len
      and use_sg. And move the use of nents right after the sgl_alloc() to
      avoid the use of uninitialized nents.
      
      If the error occurs, it adds SDEV_EVENT_ERROR_MALLOC and stub_priv
      will be released by stub event handler and connection will be shut
      down.
      
      Fixes: ea44d190 ("usbip: Implement SG support to vhci-hcd and stub driver")
      Reported-by: default avatarkbuild test robot <lkp@intel.com>
      Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarSuwan Kim <suwan.kim027@gmail.com>
      Acked-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      Cc: stable <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20191111141035.27788-1-suwan.kim027@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2a912531
  6. 12 Nov, 2019 14 commits
  7. 11 Nov, 2019 3 commits
  8. 07 Nov, 2019 2 commits
    • Aleksander Morgado's avatar
      USB: serial: option: add support for DW5821e with eSIM support · 957c31ea
      Aleksander Morgado authored
      The device exposes AT, NMEA and DIAG ports in both USB configurations.
      Exactly same layout as the default DW5821e module, just a different
      vid/pid.
      
      P:  Vendor=413c ProdID=81e0 Rev=03.18
      S:  Manufacturer=Dell Inc.
      S:  Product=DW5821e-eSIM Snapdragon X20 LTE
      S:  SerialNumber=0123456789ABCDEF
      C:  #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA
      I:  If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
      I:  If#=0x1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
      I:  If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#=0x5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
      
      P:  Vendor=413c ProdID=81e0 Rev=03.18
      S:  Manufacturer=Dell Inc.
      S:  Product=DW5821e-eSIM Snapdragon X20 LTE
      S:  SerialNumber=0123456789ABCDEF
      C:  #Ifs= 7 Cfg#= 2 Atr=a0 MxPwr=500mA
      I:  If#=0x0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim
      I:  If#=0x1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
      I:  If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
      I:  If#=0x5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
      I:  If#=0x6 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
      Signed-off-by: default avatarAleksander Morgado <aleksander@aleksander.es>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      957c31ea
    • Hewenliang's avatar
      usbip: tools: fix fd leakage in the function of read_attr_usbip_status · 26a4d4c0
      Hewenliang authored
      We should close the fd before the return of read_attr_usbip_status.
      
      Fixes: 3391ba0e ("usbip: tools: Extract generic code to be shared with vudc backend")
      Signed-off-by: default avatarHewenliang <hewenliang4@huawei.com>
      Cc: stable <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20191025043515.20053-1-hewenliang4@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      26a4d4c0