]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: introduce ipa_mem_id_optional()
authorAlex Elder <elder@linaro.org>
Wed, 9 Jun 2021 22:35:00 +0000 (17:35 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jun 2021 22:59:33 +0000 (15:59 -0700)
commitc94dedc6f264adbea7c54e10901ec65cbd0409cd
treefec008abfbb94e96b059f083edda03207a51f970
parent8a704404c8d32aed3808502b1f11f542e20dcbed
net: ipa: introduce ipa_mem_id_optional()

Introduce a new function that indicates whether a given memory
region is required for a given version of IPA hardware.  Use it to
verify that all required regions are present during initialization.

Reorder the definitions of the memory region IDs to be based on
the version in which they're first defined.  Use "+" rather than
"and above" where defining the IPA versions in which memory IDs are
used, and indicate which regions are optional (many are not).

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_mem.c
drivers/net/ipa/ipa_mem.h