Skip to content

Commit ecfd794

Browse files
committed
Merge tag 'usb-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB/Thunderbolt updates from Greg KH: "Here is the large set of USB and Thunderbolt patches for 5.9-rc1. Nothing really magic/major in here, just lots of little changes and updates: - clean up language usages in USB core and some drivers - Thunderbolt driver updates and additions - USB Gadget driver updates - dwc3 driver updates (like always...) - build with "W=1" warning fixups - mtu3 driver updates - usb-serial driver updates and device ids - typec additions and updates for new hardware - xhci debug code updates for future platforms - cdns3 driver updates - lots of other minor driver updates and fixes and cleanups All of these have been in linux-next for a while with no reported issues" * tag 'usb-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (330 commits) usb: common: usb-conn-gpio: Register charger usb: mtu3: simplify mtu3_req_complete() usb: mtu3: clear dual mode of u3port when disable device usb: mtu3: use MTU3_EP_WEDGE flag usb: mtu3: remove useless member @busy in mtu3_ep struct usb: mtu3: remove repeated error log usb: mtu3: add ->udc_set_speed() usb: mtu3: introduce a funtion to check maximum speed usb: mtu3: clear interrupts status when disable interrupts usb: mtu3: reinitialize CSR registers usb: mtu3: fix macro for maximum number of packets usb: mtu3: remove unnecessary pointer checks usb: xhci: Fix ASMedia ASM1142 DMA addressing usb: xhci: define IDs for various ASMedia host controllers usb: musb: convert to devm_platform_ioremap_resource_byname usb: gadget: tegra-xudc: convert to devm_platform_ioremap_resource_byname usb: gadget: r8a66597: convert to devm_platform_ioremap_resource_byname usb: dwc3: convert to devm_platform_ioremap_resource_byname usb: cdns3: convert to devm_platform_ioremap_resource_byname usb: phy: am335x: convert to devm_platform_ioremap_resource_byname ...
2 parents dd27111 + e3ee0e7 commit ecfd794

File tree

297 files changed

+7847
-3089
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

297 files changed

+7847
-3089
lines changed

Documentation/ABI/testing/sysfs-bus-thunderbolt

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,18 @@ KernelVersion: 4.13
178178
179179
Description: When new NVM image is written to the non-active NVM
180180
area (through non_activeX NVMem device), the
181-
authentication procedure is started by writing 1 to
182-
this file. If everything goes well, the device is
181+
authentication procedure is started by writing to
182+
this file.
183+
If everything goes well, the device is
183184
restarted with the new NVM firmware. If the image
184185
verification fails an error code is returned instead.
185186

187+
This file will accept writing values "1" or "2"
188+
- Writing "1" will flush the image to the storage
189+
area and authenticate the image in one action.
190+
- Writing "2" will run some basic validation on the image
191+
and flush it to the storage area.
192+
186193
When read holds status of the last authentication
187194
operation if an error occurred during the process. This
188195
is directly the status value from the DMA configuration
@@ -236,3 +243,49 @@ KernelVersion: 4.15
236243
237244
Description: This contains XDomain service specific settings as
238245
bitmask. Format: %x
246+
247+
What: /sys/bus/thunderbolt/devices/<device>:<port>.<index>/device
248+
Date: Oct 2020
249+
KernelVersion: v5.9
250+
Contact: Mika Westerberg <[email protected]>
251+
Description: Retimer device identifier read from the hardware.
252+
253+
What: /sys/bus/thunderbolt/devices/<device>:<port>.<index>/nvm_authenticate
254+
Date: Oct 2020
255+
KernelVersion: v5.9
256+
Contact: Mika Westerberg <[email protected]>
257+
Description: When new NVM image is written to the non-active NVM
258+
area (through non_activeX NVMem device), the
259+
authentication procedure is started by writing 1 to
260+
this file. If everything goes well, the device is
261+
restarted with the new NVM firmware. If the image
262+
verification fails an error code is returned instead.
263+
264+
When read holds status of the last authentication
265+
operation if an error occurred during the process.
266+
Format: %x.
267+
268+
What: /sys/bus/thunderbolt/devices/<device>:<port>.<index>/nvm_version
269+
Date: Oct 2020
270+
KernelVersion: v5.9
271+
Contact: Mika Westerberg <[email protected]>
272+
Description: Holds retimer NVM version number. Format: %x.%x, major.minor.
273+
274+
What: /sys/bus/thunderbolt/devices/<device>:<port>.<index>/vendor
275+
Date: Oct 2020
276+
KernelVersion: v5.9
277+
Contact: Mika Westerberg <[email protected]>
278+
Description: Retimer vendor identifier read from the hardware.
279+
280+
What: /sys/bus/thunderbolt/devices/.../nvm_authenticate_on_disconnect
281+
Date: Oct 2020
282+
KernelVersion: v5.9
283+
Contact: Mario Limonciello <[email protected]>
284+
Description: For supported devices, automatically authenticate the new Thunderbolt
285+
image when the device is disconnected from the host system.
286+
287+
This file will accept writing values "1" or "2"
288+
- Writing "1" will flush the image to the storage
289+
area and prepare the device for authentication on disconnect.
290+
- Writing "2" will run some basic validation on the image
291+
and flush it to the storage area.

Documentation/admin-guide/thunderbolt.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ following ``udev`` rule::
173173

174174
ACTION=="add", SUBSYSTEM=="thunderbolt", ATTRS{iommu_dma_protection}=="1", ATTR{authorized}=="0", ATTR{authorized}="1"
175175

176-
Upgrading NVM on Thunderbolt device or host
177-
-------------------------------------------
176+
Upgrading NVM on Thunderbolt device, host or retimer
177+
----------------------------------------------------
178178
Since most of the functionality is handled in firmware running on a
179179
host controller or a device, it is important that the firmware can be
180180
upgraded to the latest where possible bugs in it have been fixed.
@@ -185,9 +185,10 @@ for some machines:
185185

186186
`Thunderbolt Updates <https://thunderbolttechnology.net/updates>`_
187187

188-
Before you upgrade firmware on a device or host, please make sure it is a
189-
suitable upgrade. Failing to do that may render the device (or host) in a
190-
state where it cannot be used properly anymore without special tools!
188+
Before you upgrade firmware on a device, host or retimer, please make
189+
sure it is a suitable upgrade. Failing to do that may render the device
190+
in a state where it cannot be used properly anymore without special
191+
tools!
191192

192193
Host NVM upgrade on Apple Macs is not supported.
193194

Documentation/devicetree/bindings/usb/brcm,bdc.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Broadcom USB Device Controller (BDC)
44
Required properties:
55

66
- compatible: must be one of:
7-
"brcm,bdc-v0.16"
7+
"brcm,bdc-udc-v2"
88
"brcm,bdc"
99
- reg: the base register address and length
1010
- interrupts: the interrupt line for this controller
@@ -21,7 +21,7 @@ On Broadcom STB platforms, these properties are required:
2121
Example:
2222

2323
bdc@f0b02000 {
24-
compatible = "brcm,bdc-v0.16";
24+
compatible = "brcm,bdc-udc-v2";
2525
reg = <0xf0b02000 0xfc4>;
2626
interrupts = <0x0 0x60 0x0>;
2727
phys = <&usbphy_0 0x0>;

Documentation/devicetree/bindings/usb/ingenic,jz4770-phy.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
$id: http://devicetree.org/schemas/usb/ingenic,jz4770-phy.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: Ingenic JZ4770 USB PHY devicetree bindings
7+
title: Ingenic SoCs USB PHY devicetree bindings
88

99
maintainers:
1010
- Paul Cercueil <[email protected]>
11+
- 周琰杰 (Zhou Yanjie) <[email protected]>
1112

1213
properties:
1314
$nodename:
@@ -16,6 +17,9 @@ properties:
1617
compatible:
1718
enum:
1819
- ingenic,jz4770-phy
20+
- ingenic,jz4780-phy
21+
- ingenic,x1000-phy
22+
- ingenic,x1830-phy
1923

2024
reg:
2125
maxItems: 1

Documentation/devicetree/bindings/usb/ti,keystone-dwc3.yaml

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,36 @@ maintainers:
1111

1212
properties:
1313
compatible:
14-
oneOf:
15-
- const: "ti,keystone-dwc3"
16-
- const: "ti,am654-dwc3"
14+
items:
15+
- enum:
16+
- ti,keystone-dwc3
17+
- ti,am654-dwc3
1718

1819
reg:
1920
maxItems: 1
20-
description: Address and length of the register set for the USB subsystem on
21-
the SOC.
21+
22+
'#address-cells':
23+
const: 1
24+
25+
'#size-cells':
26+
const: 1
27+
28+
ranges: true
2229

2330
interrupts:
2431
maxItems: 1
25-
description: The irq number of this device that is used to interrupt the MPU.
26-
2732

2833
clocks:
29-
description: Clock ID for USB functional clock.
34+
minItems: 1
35+
maxItems: 2
36+
37+
assigned-clocks:
38+
minItems: 1
39+
maxItems: 2
40+
41+
assigned-clock-parents:
42+
minItems: 1
43+
maxItems: 2
3044

3145
power-domains:
3246
description: Should contain a phandle to a PM domain provider node
@@ -42,33 +56,42 @@ properties:
4256

4357
phy-names:
4458
items:
45-
- const: "usb3-phy"
59+
- const: usb3-phy
60+
61+
dma-coherent: true
4662

47-
dwc3:
63+
dma-ranges: true
64+
65+
patternProperties:
66+
"usb@[a-f0-9]+$":
67+
type: object
4868
description: This is the node representing the DWC3 controller instance
4969
Documentation/devicetree/bindings/usb/dwc3.txt
5070

5171
required:
5272
- compatible
5373
- reg
74+
- "#address-cells"
75+
- "#size-cells"
76+
- ranges
5477
- interrupts
55-
- clocks
78+
79+
additionalProperties: false
5680

5781
examples:
5882
- |
5983
#include <dt-bindings/interrupt-controller/arm-gic.h>
6084
61-
usb: usb@2680000 {
85+
dwc3@2680000 {
6286
compatible = "ti,keystone-dwc3";
6387
#address-cells = <1>;
6488
#size-cells = <1>;
6589
reg = <0x2680000 0x10000>;
6690
clocks = <&clkusb>;
67-
clock-names = "usb";
6891
interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
6992
ranges;
7093
71-
dwc3@2690000 {
94+
usb@2690000 {
7295
compatible = "synopsys,dwc3";
7396
reg = <0x2690000 0x70000>;
7497
interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;

Documentation/driver-api/usb/URB.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ How to do isochronous (ISO) transfers?
240240
======================================
241241

242242
Besides the fields present on a bulk transfer, for ISO, you also
243-
also have to set ``urb->interval`` to say how often to make transfers; it's
243+
have to set ``urb->interval`` to say how often to make transfers; it's
244244
often one per frame (which is once every microframe for highspeed devices).
245245
The actual interval used will be a power of two that's no bigger than what
246246
you specify. You can use the :c:func:`usb_fill_int_urb` macro to fill

Documentation/usb/gadget_hid.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and HID reports can be sent/received through I/O on the
1111
/dev/hidgX character devices.
1212

1313
For more details about HID, see the developer page on
14-
http://www.usb.org/developers/hidpage/
14+
https://www.usb.org/developers/hidpage/
1515

1616
Configuration
1717
=============

Documentation/usb/gadget_multi.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,24 +142,24 @@ Footnotes
142142
=========
143143

144144
[1] Remote Network Driver Interface Specification,
145-
[[http://msdn.microsoft.com/en-us/library/ee484414.aspx]].
145+
[[https://msdn.microsoft.com/en-us/library/ee484414.aspx]].
146146

147147
[2] Communications Device Class Abstract Control Model, spec for this
148148
and other USB classes can be found at
149149
[[http://www.usb.org/developers/devclass_docs/]].
150150

151151
[3] CDC Ethernet Control Model.
152152

153-
[4] [[http://msdn.microsoft.com/en-us/library/ff537109(v=VS.85).aspx]]
153+
[4] [[https://msdn.microsoft.com/en-us/library/ff537109(v=VS.85).aspx]]
154154

155-
[5] [[http://msdn.microsoft.com/en-us/library/ff539234(v=VS.85).aspx]]
155+
[5] [[https://msdn.microsoft.com/en-us/library/ff539234(v=VS.85).aspx]]
156156

157157
[6] To put it in some other nice words, Windows failed to respond to
158158
any user input.
159159

160160
[7] You may find [[http://www.cygnal.org/ubb/Forum9/HTML/001050.html]]
161161
useful.
162162

163-
[8] http://www.nirsoft.net/utils/usb_devices_view.html
163+
[8] https://www.nirsoft.net/utils/usb_devices_view.html
164164

165-
[9] [[http://msdn.microsoft.com/en-us/library/ff570620.aspx]]
165+
[9] [[https://msdn.microsoft.com/en-us/library/ff570620.aspx]]

Documentation/usb/linux.inf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; Based on template INF file found at
2-
; <http://msdn.microsoft.com/en-us/library/ff570620.aspx>
2+
; <https://msdn.microsoft.com/en-us/library/ff570620.aspx>
33
; which was:
44
; Copyright (c) Microsoft Corporation
55
; and released under the MLPL as found at:

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7013,6 +7013,13 @@ L: [email protected]
70137013
S: Maintained
70147014
F: drivers/usb/gadget/udc/fsl*
70157015

7016+
FREESCALE USB PHY DRIVER
7017+
M: Ran Wang <[email protected]>
7018+
7019+
7020+
S: Maintained
7021+
F: drivers/usb/phy/phy-fsl-usb*
7022+
70167023
FREEVXFS FILESYSTEM
70177024
M: Christoph Hellwig <[email protected]>
70187025
S: Maintained

0 commit comments

Comments
 (0)