forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'usb-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/gregkh/usb Pull USB / Thunderbolt updates from Greg KH: "Here is the big set of USB and Thunderbolt patches for 5.14-rc1. Nothing major here just lots of little changes for new hardware and features. Highlights are: - more USB 4 support added to the thunderbolt core - build warning fixes all over the place - usb-serial driver updates and new device support - mtu3 driver updates - gadget driver updates - dwc3 driver updates - dwc2 driver updates - isp1760 host driver updates - musb driver updates - lots of other tiny things. Full details are in the shortlog. All of these have been in linux-next for a while now with no reported issues" * tag 'usb-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (223 commits) phy: qcom-qusb2: Add configuration for SM4250 and SM6115 dt-bindings: phy: qcom,qusb2: document sm4250/6115 compatible dt-bindings: usb: qcom,dwc3: Add bindings for sm6115/4250 USB: cdc-acm: blacklist Heimann USB Appset device usb: xhci-mtk: allow multiple Start-Split in a microframe usb: ftdi-elan: remove redundant continue statement in a while-loop usb: class: cdc-wdm: return the correct errno code xhci: remove redundant continue statement usb: dwc3: Fix debugfs creation flow usb: gadget: hid: fix error return code in hid_bind() usb: gadget: eem: fix echo command packet response issue usb: gadget: f_hid: fix endianness issue with descriptors Revert "USB: misc: Add onboard_usb_hub driver" Revert "of/platform: Add stubs for of_platform_device_create/destroy()" Revert "usb: host: xhci-plat: Create platform device for onboard hubs in probe()" Revert "arm64: dts: qcom: sc7180-trogdor: Add nodes for onboard USB hub" xhci: solve a double free problem while doing s4 xhci: handle failed buffer copy to URB sg list and fix a W=1 copiler warning xhci: Add adaptive interrupt rate for isoch TRBs with XHCI_AVOID_BEI quirk xhci: Remove unused defines for ERST_SIZE and ERST_ENTRIES ...
- Loading branch information
Showing
215 changed files
with
8,848 additions
and
2,889 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
What: /sys/bus/thunderbolt/devices/.../domainX/boot_acl | ||
What: /sys/bus/thunderbolt/devices/.../domainX/boot_acl | ||
Date: Jun 2018 | ||
KernelVersion: 4.17 | ||
Contact: [email protected] | ||
|
@@ -21,7 +21,7 @@ Description: Holds a comma separated list of device unique_ids that | |
If a device is authorized automatically during boot its | ||
boot attribute is set to 1. | ||
|
||
What: /sys/bus/thunderbolt/devices/.../domainX/deauthorization | ||
What: /sys/bus/thunderbolt/devices/.../domainX/deauthorization | ||
Date: May 2021 | ||
KernelVersion: 5.12 | ||
Contact: Mika Westerberg <[email protected]> | ||
|
@@ -30,7 +30,7 @@ Description: This attribute tells whether the system supports | |
de-authorize PCIe tunnel by writing 0 to authorized | ||
attribute under each device. | ||
|
||
What: /sys/bus/thunderbolt/devices/.../domainX/iommu_dma_protection | ||
What: /sys/bus/thunderbolt/devices/.../domainX/iommu_dma_protection | ||
Date: Mar 2019 | ||
KernelVersion: 4.21 | ||
Contact: [email protected] | ||
|
@@ -39,7 +39,7 @@ Description: This attribute tells whether the system uses IOMMU | |
it is not (DMA protection is solely based on Thunderbolt | ||
security levels). | ||
|
||
What: /sys/bus/thunderbolt/devices/.../domainX/security | ||
What: /sys/bus/thunderbolt/devices/.../domainX/security | ||
Date: Sep 2017 | ||
KernelVersion: 4.13 | ||
Contact: [email protected] | ||
|
@@ -61,7 +61,7 @@ Description: This attribute holds current Thunderbolt security level | |
the BIOS. | ||
======= ================================================== | ||
|
||
What: /sys/bus/thunderbolt/devices/.../authorized | ||
What: /sys/bus/thunderbolt/devices/.../authorized | ||
Date: Sep 2017 | ||
KernelVersion: 4.13 | ||
Contact: [email protected] | ||
|
@@ -95,22 +95,22 @@ Description: This attribute is used to authorize Thunderbolt devices | |
EKEYREJECTED if the challenge response did not match. | ||
== ======================================================== | ||
|
||
What: /sys/bus/thunderbolt/devices/.../boot | ||
What: /sys/bus/thunderbolt/devices/.../boot | ||
Date: Jun 2018 | ||
KernelVersion: 4.17 | ||
Contact: [email protected] | ||
Description: This attribute contains 1 if Thunderbolt device was already | ||
authorized on boot and 0 otherwise. | ||
|
||
What: /sys/bus/thunderbolt/devices/.../generation | ||
What: /sys/bus/thunderbolt/devices/.../generation | ||
Date: Jan 2020 | ||
KernelVersion: 5.5 | ||
Contact: Christian Kellner <[email protected]> | ||
Description: This attribute contains the generation of the Thunderbolt | ||
controller associated with the device. It will contain 4 | ||
for USB4. | ||
|
||
What: /sys/bus/thunderbolt/devices/.../key | ||
What: /sys/bus/thunderbolt/devices/.../key | ||
Date: Sep 2017 | ||
KernelVersion: 4.13 | ||
Contact: [email protected] | ||
|
@@ -213,19 +213,36 @@ Description: When new NVM image is written to the non-active NVM | |
restarted with the new NVM firmware. If the image | ||
verification fails an error code is returned instead. | ||
|
||
This file will accept writing values "1" or "2" | ||
This file will accept writing values "1", "2" or "3". | ||
|
||
- Writing "1" will flush the image to the storage | ||
area and authenticate the image in one action. | ||
- Writing "2" will run some basic validation on the image | ||
and flush it to the storage area. | ||
- Writing "3" will authenticate the image that is | ||
currently written in the storage area. This is only | ||
supported with USB4 devices and retimers. | ||
|
||
When read holds status of the last authentication | ||
operation if an error occurred during the process. This | ||
is directly the status value from the DMA configuration | ||
based mailbox before the device is power cycled. Writing | ||
0 here clears the status. | ||
|
||
What: /sys/bus/thunderbolt/devices/.../nvm_authenticate_on_disconnect | ||
Date: Oct 2020 | ||
KernelVersion: v5.9 | ||
Contact: Mario Limonciello <[email protected]> | ||
Description: For supported devices, automatically authenticate the new Thunderbolt | ||
image when the device is disconnected from the host system. | ||
|
||
This file will accept writing values "1" or "2" | ||
|
||
- Writing "1" will flush the image to the storage | ||
area and prepare the device for authentication on disconnect. | ||
- Writing "2" will run some basic validation on the image | ||
and flush it to the storage area. | ||
|
||
What: /sys/bus/thunderbolt/devices/<xdomain>.<service>/key | ||
Date: Jan 2018 | ||
KernelVersion: 4.15 | ||
|
@@ -276,6 +293,39 @@ Contact: [email protected] | |
Description: This contains XDomain service specific settings as | ||
bitmask. Format: %x | ||
|
||
What: /sys/bus/thunderbolt/devices/usb4_portX/link | ||
Date: Sep 2021 | ||
KernelVersion: v5.14 | ||
Contact: Mika Westerberg <[email protected]> | ||
Description: Returns the current link mode. Possible values are | ||
"usb4", "tbt" and "none". | ||
|
||
What: /sys/bus/thunderbolt/devices/usb4_portX/offline | ||
Date: Sep 2021 | ||
KernelVersion: v5.14 | ||
Contact: Rajmohan Mani <[email protected]> | ||
Description: Writing 1 to this attribute puts the USB4 port into | ||
offline mode. Only allowed when there is nothing | ||
connected to the port (link attribute returns "none"). | ||
Once the port is in offline mode it does not receive any | ||
hotplug events. This is used to update NVM firmware of | ||
on-board retimers. Writing 0 puts the port back to | ||
online mode. | ||
|
||
This attribute is only visible if the platform supports | ||
powering on retimers when there is no cable connected. | ||
|
||
What: /sys/bus/thunderbolt/devices/usb4_portX/rescan | ||
Date: Sep 2021 | ||
KernelVersion: v5.14 | ||
Contact: Rajmohan Mani <[email protected]> | ||
Description: When the USB4 port is in offline mode writing 1 to this | ||
attribute forces rescan of the sideband for on-board | ||
retimers. Each retimer appear under the USB4 port as if | ||
the USB4 link was up. These retimers act in the same way | ||
as if the cable was connected so upgrading their NVM | ||
firmware can be done the usual way. | ||
|
||
What: /sys/bus/thunderbolt/devices/<device>:<port>.<index>/device | ||
Date: Oct 2020 | ||
KernelVersion: v5.9 | ||
|
@@ -308,17 +358,3 @@ Date: Oct 2020 | |
KernelVersion: v5.9 | ||
Contact: Mika Westerberg <[email protected]> | ||
Description: Retimer vendor identifier read from the hardware. | ||
|
||
What: /sys/bus/thunderbolt/devices/.../nvm_authenticate_on_disconnect | ||
Date: Oct 2020 | ||
KernelVersion: v5.9 | ||
Contact: Mario Limonciello <[email protected]> | ||
Description: For supported devices, automatically authenticate the new Thunderbolt | ||
image when the device is disconnected from the host system. | ||
|
||
This file will accept writing values "1" or "2" | ||
|
||
- Writing "1" will flush the image to the storage | ||
area and prepare the device for authentication on disconnect. | ||
- Writing "2" will run some basic validation on the image | ||
and flush it to the storage area. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,17 +154,6 @@ Description: | |
files hold a string value (enable or disable) indicating whether | ||
or not USB3 hardware LPM U1 or U2 is enabled for the device. | ||
|
||
What: /sys/bus/usb/devices/.../removable | ||
Date: February 2012 | ||
Contact: Matthew Garrett <[email protected]> | ||
Description: | ||
Some information about whether a given USB device is | ||
physically fixed to the platform can be inferred from a | ||
combination of hub descriptor bits and platform-specific data | ||
such as ACPI. This file will read either "removable" or | ||
"fixed" if the information is available, and "unknown" | ||
otherwise. | ||
|
||
What: /sys/bus/usb/devices/.../ltm_capable | ||
Date: July 2012 | ||
Contact: Sarah Sharp <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
What: /sys/devices/.../removable | ||
Date: May 2021 | ||
Contact: Rajat Jain <[email protected]> | ||
Description: | ||
Information about whether a given device can be removed from the | ||
platform by the user. This is determined by its subsystem in a | ||
bus / platform-specific way. This attribute is only present for | ||
devices that can support determining such information: | ||
|
||
"removable": device can be removed from the platform by the user | ||
"fixed": device is fixed to the platform / cannot be removed | ||
by the user. | ||
"unknown": The information is unavailable / cannot be deduced. | ||
|
||
Currently this is only supported by USB (which infers the | ||
information from a combination of hub descriptor bits and | ||
platform-specific data such as ACPI) and PCI (which gets this | ||
from ACPI / device tree). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,7 @@ required: | |
- reg | ||
- reg-names | ||
- interrupts | ||
- interrupt-names | ||
|
||
additionalProperties: false | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/usb/nxp,isp1760.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: NXP ISP1760 family controller bindings | ||
|
||
maintainers: | ||
- Sebastian Siewior <[email protected]> | ||
- Laurent Pinchart <[email protected]> | ||
|
||
description: | | ||
NXP ISP1760 family, which includes ISP1760/1761/1763 devicetree controller | ||
bindings | ||
properties: | ||
compatible: | ||
enum: | ||
- nxp,usb-isp1760 | ||
- nxp,usb-isp1761 | ||
- nxp,usb-isp1763 | ||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
minItems: 1 | ||
maxItems: 2 | ||
items: | ||
- description: Host controller interrupt | ||
- description: Device controller interrupt in isp1761 | ||
|
||
interrupt-names: | ||
minItems: 1 | ||
maxItems: 2 | ||
items: | ||
- const: host | ||
- const: peripheral | ||
|
||
bus-width: | ||
description: | ||
Number of data lines. | ||
enum: [8, 16, 32] | ||
default: 32 | ||
|
||
dr_mode: | ||
enum: | ||
- host | ||
- peripheral | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
usb@40200000 { | ||
compatible = "nxp,usb-isp1763"; | ||
reg = <0x40200000 0x100000>; | ||
interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; | ||
bus-width = <16>; | ||
dr_mode = "host"; | ||
}; | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.