]> 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)
commit942173d15967dffd0b2414fd6eda4629ecbc81fa
treefec008abfbb94e96b059f083edda03207a51f970
parent605045029c606f3f707538e72f610c37b100e605
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