ABI: sysfs-driver-ufs: Add another What for platform drivers
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 27 Sep 2021 13:59:49 +0000 (15:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Sep 2021 10:48:16 +0000 (12:48 +0200)
commite080f24795d03605dfec063820d92b3d848006da
treeac06eee2d7e93be98c22367a2f9aeebd3266b867
parent3a0d390bd52992cd238f55ee30a15fbd2223069e
ABI: sysfs-driver-ufs: Add another What for platform drivers

The current what expressions:
What:          /sys/bus/platform/drivers/ufshcd/*/...

Doesn't actually match what (some?) platform drivers actually
export. For instance, drivers/scsi/ufs/ufs-hisi.c actually
creates the sysfs struct for ufshcd inside this directory:

/sys/devices/platform/soc/ff3c0000.ufs

Which has those aliases:

/sys/devices/virtual/devlink/platform:fff35000.crg_ctrl--platform:ff3c0000.ufs/consumer/
/sys/bus/platform/drivers/ufshcd-hisi/ff3c0000.ufs/
/sys/bus/platform/devices/soc/ff3c0000.ufs/
/sys/bus/platform/devices/ff3c0000.ufs/

So, add another What: for such files that will match the
device ufs entries, e. g.:

What:          /sys/bus/platform/devices/*.ufs/

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/bc61469964bbcabe38d12aa88f2734d38a8741e5.1632750608.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-driver-ufs