forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: export firmware port location in sysfs
The platform firmware "location" data is used to find port peer relationships. But firmware is an unreliable source, and there are real world examples of errors leading to missing or wrong peer relationships. Debugging this is currently hard. Exporting the location attribute makes it easier to spot mismatches between the firmware data and the real world. Signed-off-by: Bjørn Mork <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,6 +189,16 @@ Description: | |
The file will read "hotplug", "wired" and "not used" if the | ||
information is available, and "unknown" otherwise. | ||
|
||
What: /sys/bus/usb/devices/.../(hub interface)/portX/location | ||
Date: October 2018 | ||
Contact: Bjørn Mork <[email protected]> | ||
Description: | ||
Some platforms provide usb port physical location through | ||
firmware. This is used by the kernel to pair up logical ports | ||
mapping to the same physical connector. The attribute exposes the | ||
raw location value as a hex integer. | ||
|
||
|
||
What: /sys/bus/usb/devices/.../(hub interface)/portX/quirks | ||
Date: May 2018 | ||
Contact: Nicolas Boichat <[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