mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
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/[email protected]/
Fixes: 287905e68d ("driver core: Expose device link details in sysfs")
Cc: [email protected]
Reported-by: Michael Walle <[email protected]>
Tested-by: Michael Walle <[email protected]>
Signed-off-by: Saravana Kannan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
10 lines
400 B
Plaintext
10 lines
400 B
Plaintext
What: /sys/devices/.../consumer:<consumer>
|
|
Date: May 2020
|
|
Contact: Saravana Kannan <[email protected]>
|
|
Description:
|
|
The /sys/devices/.../consumer:<consumer> are symlinks to device
|
|
links where this device is the supplier. <consumer> denotes the
|
|
name of the consumer 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.
|