ABI: sysfs-bus-platform: add modalias description
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 27 Sep 2021 13:59:50 +0000 (15:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Sep 2021 10:48:16 +0000 (12:48 +0200)
Define the modalias parameter for platform devices, including
the ones exposed via devicetree.

Acked-by: Barry Song <song.bao.hua@hisilicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/9cdebbad008886b1d09f5f3ac5d88bee19f08d97.1632750608.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-platform

index ff30728595ef1070b2b51fc9c91bde0ddb7de389..c4dfe7355c2d7ee7a6f4ad78ab4ba2ac0f7d7e32 100644 (file)
@@ -42,3 +42,15 @@ Date:                August 2021
 Contact:       Barry Song <song.bao.hua@hisilicon.com>
 Description:
                This attribute will show "msi" if <N> is a valid msi irq
+
+What:          /sys/bus/platform/devices/.../modalias
+Description:
+               Same as MODALIAS in the uevent at device creation.
+
+               A platform device that it is exposed via devicetree uses:
+
+                       - of:N`of node name`T`type`
+
+               Other platform devices use, instead:
+
+                       - platform:`driver name`