Skip to content

Commit

Permalink
Merge branch 'net-ipa-GSI-regs'
Browse files Browse the repository at this point in the history
Alex Elder says:

====================
net: ipa: determine GSI register offsets differently

This series changes the way GSI register offset are specified, using
the "reg" mechanism currently used for IPA registers.  A follow-on
series will extend this work so fields within GSI registers are also
specified this way.

The first patch rearranges the GSI register initialization code so
it is similar to the way it's done for the IPA registers.  The
second identifies all the GSI registers in an enumerated type.
The third introduces "gsi_reg-v3.1.c" and uses the "reg" code to
define one GSI register offset.  The second-to-last patch just
adds "gsi_reg-v3.5.1.c", because that version introduces a new
register not previously defined.  All the rest just define the
rest of the GSI register offsets using the "reg" mechanism.

Note that, to have continued lines align with an open parenthesis,
new files created in this series cause some checkpatch warnings.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Feb 13, 2023
2 parents 4fab641 + 5791a73 commit 8024edf
Show file tree
Hide file tree
Showing 7 changed files with 903 additions and 281 deletions.
9 changes: 7 additions & 2 deletions drivers/net/ipa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@

IPA_VERSIONS := 3.1 3.5.1 4.2 4.5 4.7 4.9 4.11

# Some IPA versions can reuse another set of GSI register definitions.
GSI_IPA_VERSIONS := 3.1 3.5.1

obj-$(CONFIG_QCOM_IPA) += ipa.o

ipa-y := ipa_main.o ipa_power.o ipa_reg.o ipa_mem.o \
ipa_table.o ipa_interrupt.o gsi.o gsi_trans.o \
ipa_gsi.o ipa_smp2p.o ipa_uc.o \
ipa_table.o ipa_interrupt.o gsi.o gsi_reg.o \
gsi_trans.o ipa_gsi.o ipa_smp2p.o ipa_uc.o \
ipa_endpoint.o ipa_cmd.o ipa_modem.o \
ipa_resource.o ipa_qmi.o ipa_qmi_msg.o \
ipa_sysfs.o

ipa-y += $(GSI_IPA_VERSIONS:%=reg/gsi_reg-v%.o)

ipa-y += $(IPA_VERSIONS:%=reg/ipa_reg-v%.o)

ipa-y += $(IPA_VERSIONS:%=data/ipa_data-v%.o)
Loading

0 comments on commit 8024edf

Please sign in to comment.