All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: ipa: introduce ipa_syfs.c
@ 2021-06-11 20:39 Alex Elder
  2021-06-11 20:39 ` [PATCH net-next 1/3] net: ipa: make endpoint data validation unconditional Alex Elder
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Alex Elder @ 2021-06-11 20:39 UTC (permalink / raw)
  To: davem, kuba
  Cc: leon, bjorn.andersson, evgreen, cpratapa, subashab, elder,
	aleksander, ejcaruso, netdev, linux-kernel

This series (its last patch, actually) creates a new source file,
"ipa_syfs.c", to contain functions and data that expose to user
space information known by the IPA driver via device attributes.

The directory containing these files on supported systems is:
    /sys/devices/platform/soc@0/1e40000.ipa

And within that direcftory, the following files and directories
are added:
    .
    |-- feature
    |   |-- rx_offload          Type of checksum offload supported
    |   `-- tx_offload
    |   . . .
    |-- modem
    |   |-- rx_endpoint_id      IPA endpoint IDs for the embedded modem
    |   `-- tx_endpoint_id
    |   . . .
    |-- version                 IPA hardware version (informational)
        . . .

The first patch just makes endpoint validation unconditional, as
suggested by Leon Romanovsky.  The second just ensures the version
defined in configuration data is valid, so the version attribute
doesn't have to handle unrecognized version numbers.

					-Alex

Alex Elder (3):
  net: ipa: make endpoint data validation unconditional
  net: ipa: introduce ipa_version_valid()
  net: ipa: introduce sysfs code

 .../testing/sysfs-devices-platform-soc-ipa    |  78 ++++++++++
 drivers/net/ipa/Makefile                      |   3 +-
 drivers/net/ipa/ipa_endpoint.c                |  12 --
 drivers/net/ipa/ipa_main.c                    |  36 ++++-
 drivers/net/ipa/ipa_sysfs.c                   | 136 ++++++++++++++++++
 drivers/net/ipa/ipa_sysfs.h                   |  15 ++
 drivers/net/ipa/ipa_version.h                 |   2 +
 7 files changed, 268 insertions(+), 14 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-soc-ipa
 create mode 100644 drivers/net/ipa/ipa_sysfs.c
 create mode 100644 drivers/net/ipa/ipa_sysfs.h

-- 
2.27.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-06-11 21:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11 20:39 [PATCH net-next 0/3] net: ipa: introduce ipa_syfs.c Alex Elder
2021-06-11 20:39 ` [PATCH net-next 1/3] net: ipa: make endpoint data validation unconditional Alex Elder
2021-06-11 20:39 ` [PATCH net-next 2/3] net: ipa: introduce ipa_version_valid() Alex Elder
2021-06-11 20:39 ` [PATCH net-next 3/3] net: ipa: introduce sysfs code Alex Elder
2021-06-11 21:30 ` [PATCH net-next 0/3] net: ipa: introduce ipa_syfs.c patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.