usb: export firmware port location in sysfs
authorBjørn Mork <bjorn@mork.no>
Fri, 28 Sep 2018 13:40:31 +0000 (15:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2018 19:05:30 +0000 (12:05 -0700)
commit355c74e55e9992126ec5e568a3edb8e280fe040d
tree0d45517642de599088dede57dc0d51144edbc25e
parentbd0e6c9614b95352eb31d0207df16dc156c527fa
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 <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-usb
drivers/usb/core/port.c