]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: don't define unneeded GSI register offsets
authorAlex Elder <elder@linaro.org>
Sat, 10 Sep 2022 01:11:26 +0000 (20:11 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 14:45:46 +0000 (07:45 -0700)
commit8cf570e79cef9a86a67696fffb18ec8b048cc37e
tree9faa57fd4ac94fe0d58c3a0041210819d4334064
parent9c7ffb46e7e746c18b0ad332cd98a66da6817cc4
net: ipa: don't define unneeded GSI register offsets

Each GSI execution environment (EE) is able to access many of the
GSI registers associated with the other EEs.  A block of GSI
registers is contained within a region of memory, and an EE's
register offset can be determined by adding the register's base
offset to the product of the EE ID and a fixed constant.

Despite this possibility, the AP IPA code *never* accesses any GSI
registers other than its own.  So there's no need to define the
macros that compute register offsets for other EEs.

Redefine the AP access macros to compute the offset the way the more
general "any EE" macro would, and get rid of the unneeded macros.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/gsi_reg.h