An upcoming series (or two) will convert the definitions of GSI registers used by IPA so they use the "IPA reg" mechanism to specify register offsets and their fields. This will simplify implementing the fairly large number of changes required in GSI registers to support more than 32 GSI channels (introduced in IPA v5.0). A few minor problems and inconsistencies were found, and they're fixed here. The last three patches in this series change the "ipa_reg" code to separate the IPA-specific part (the base virtual address, basically) from the generic register part, and the now- generic code is renamed to use just "reg_" or "REG_" as a prefix rather than "ipa_reg" or "IPA_REG_". -Alex Alex Elder (9): net: ipa: generic command param fix net: ipa: get rid of ipa->reg_addr net: ipa: add some new IPA versions net: ipa: tighten up IPA register validity checking net: ipa: use bitmasks for GSI IRQ values net: ipa: GSI register cleanup net: ipa: start generalizing "ipa_reg" net: ipa: generalize register offset functions net: ipa: generalize register field functions drivers/net/ipa/gsi.c | 82 +++++--- drivers/net/ipa/gsi_reg.h | 109 +++++------ drivers/net/ipa/ipa.h | 4 +- drivers/net/ipa/ipa_cmd.c | 6 +- drivers/net/ipa/ipa_endpoint.c | 205 ++++++++++--------- drivers/net/ipa/ipa_interrupt.c | 29 ++- drivers/net/ipa/ipa_main.c | 114 +++++------ drivers/net/ipa/ipa_mem.c | 14 +- drivers/net/ipa/ipa_reg.c | 90 +++++---- drivers/net/ipa/ipa_reg.h | 139 ++----------- drivers/net/ipa/ipa_resource.c | 16 +- drivers/net/ipa/ipa_table.c | 35 ++-- drivers/net/ipa/ipa_uc.c | 6 +- drivers/net/ipa/ipa_version.h | 6 +- drivers/net/ipa/reg.h | 133 +++++++++++++ drivers/net/ipa/reg/ipa_reg-v3.1.c | 277 +++++++++++++------------- drivers/net/ipa/reg/ipa_reg-v3.5.1.c | 263 +++++++++++++------------ drivers/net/ipa/reg/ipa_reg-v4.11.c | 265 +++++++++++++------------ drivers/net/ipa/reg/ipa_reg-v4.2.c | 249 ++++++++++++------------ drivers/net/ipa/reg/ipa_reg-v4.5.c | 281 +++++++++++++-------------- drivers/net/ipa/reg/ipa_reg-v4.7.c | 265 +++++++++++++------------ drivers/net/ipa/reg/ipa_reg-v4.9.c | 265 +++++++++++++------------ 22 files changed, 1451 insertions(+), 1402 deletions(-) create mode 100644 drivers/net/ipa/reg.h -- 2.34.1