Merge branch 'ipa-sysfs'
authorDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 21:13:18 +0000 (14:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 21:13:18 +0000 (14:13 -0700)
commit1f1aa3fe0214a75b45af640ace9684405139e755
tree9e0bef177cc30b0a99c643ff84dbd4ca649ed5f8
parent0b217d3d746233ace52b5dcb26974e929abf62c5
parent2e3cf97f4741b320e8f4639fcca732b17614a55f
Merge branch 'ipa-sysfs'

Alex Elder says:

====================
net: ipa: introduce ipa_syfs.c

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.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>