]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: add an endpoint device attribute group
authorAlex Elder <elder@linaro.org>
Tue, 19 Jul 2022 19:16:39 +0000 (14:16 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 Jul 2022 04:03:26 +0000 (21:03 -0700)
commit15f992b0450b43d7fa578d671812a197d136a1ee
treeacb4a82e7db2ca845842db1da5f4d5cf9195a8ac
parent414ba9cf0e52f8a545f82ac1f558cf601ff32730
net: ipa: add an endpoint device attribute group

Create a new attribute group meant to provide a single place that
defines endpoint IDs that might be needed by user space.  Not all
defined endpoints are presented, and only those that are defined
will be made visible.

The new attributes use "extended" device attributes to hold endpoint
IDs, which is a little more compact and efficient.  Reimplement the
existing modem endpoint ID attribute files using common code.

Signed-off-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20220719191639.373249-1-elder@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/ABI/testing/sysfs-devices-platform-soc-ipa
drivers/net/ipa/ipa_main.c
drivers/net/ipa/ipa_sysfs.c
drivers/net/ipa/ipa_sysfs.h