OSDN Git Service

Merge branch 'net-ipa-validation-cleanup'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 25 Oct 2022 09:15:21 +0000 (11:15 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 25 Oct 2022 09:15:21 +0000 (11:15 +0200)
commit71920a773e522b6a34bba957a3aacc99cefa3836
tree4c8419100b6b3ca7fa623ffbab551e24d271ef2c
parent34802d0662d1dc28e5086657f88490a183b009e7
parent73da9cac517ce4dc3a00b87f800846dcc2469ddf
Merge branch 'net-ipa-validation-cleanup'

Alex Elder says:

====================
net: ipa: validation cleanup

This series gathers a set of IPA driver cleanups, mostly involving
code that ensures certain things are known to be correct *early*
(either at build or initializatin time), so they can be assumed good
during normal operation.

The first removes three constant symbols, by making a (reasonable)
assumption that a routing table consists of entries for the modem
followed by entries for the AP, with no unused entries between them.

The second removes two checks that are redundant (they verify the
sizes of two memory regions are in range, which will have been done
earlier for all regions).

The third adds some new checks to routing and filter tables that
can be done at "init time" (without requiring any access to IPA
hardware).

The fourth moves a check that routing and filter table addresses can
be encoded within certain IPA immediate commands, so it's performed
earlier; the checks can be done without touching IPA hardware.  The
fifth moves some other command-related checks earlier, for the same
reason.

The sixth removes the definition ipa_table_valid(), because what it
does has become redundant.  Finally, the last patch moves two more
validation calls so they're done very early in the probe process.
This will be required by some upcoming patches, which will record
the size of the routing and filter tables at this time so they're
available for subsequent initialization.
====================

Link: https://lore.kernel.org/r/20221021191340.4187935-1-elder@linaro.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>