mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 21:54:06 +08:00
e020ff611b
The device link device's name was of the form:
<supplier-dev-name>--<consumer-dev-name>
This can cause name collision as reported here [1] as device names are
not globally unique. Since device names have to be unique within the
bus/class, add the bus/class name as a prefix to the device names used to
construct the device link device name.
So the devuce link device's name will be of the form:
<supplier-bus-name>:<supplier-dev-name>--<consumer-bus-name>:<consumer-dev-name>
[1] - https://lore.kernel.org/lkml/20201229033440.32142-1-michael@walle.cc/
Fixes: 287905e68d
("driver core: Expose device link details in sysfs")
Cc: stable@vger.kernel.org
Reported-by: Michael Walle <michael@walle.cc>
Tested-by: Michael Walle <michael@walle.cc>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20210110175408.1465657-1-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 lines
400 B
Plaintext
10 lines
400 B
Plaintext
What: /sys/devices/.../supplier:<supplier>
|
|
Date: May 2020
|
|
Contact: Saravana Kannan <saravanak@google.com>
|
|
Description:
|
|
The /sys/devices/.../supplier:<supplier> are symlinks to device
|
|
links where this device is the consumer. <supplier> denotes the
|
|
name of the supplier in that device link and is of the form
|
|
bus:device name. There can be zero or more of these symlinks
|
|
for a given device.
|