Skip to content

Commit 8024edf

Browse files
committed
Merge branch 'net-ipa-GSI-regs'
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 <[email protected]>
2 parents 4fab641 + 5791a73 commit 8024edf

File tree

7 files changed

+903
-281
lines changed

7 files changed

+903
-281
lines changed

drivers/net/ipa/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,20 @@
44

55
IPA_VERSIONS := 3.1 3.5.1 4.2 4.5 4.7 4.9 4.11
66

7+
# Some IPA versions can reuse another set of GSI register definitions.
8+
GSI_IPA_VERSIONS := 3.1 3.5.1
9+
710
obj-$(CONFIG_QCOM_IPA) += ipa.o
811

912
ipa-y := ipa_main.o ipa_power.o ipa_reg.o ipa_mem.o \
10-
ipa_table.o ipa_interrupt.o gsi.o gsi_trans.o \
11-
ipa_gsi.o ipa_smp2p.o ipa_uc.o \
13+
ipa_table.o ipa_interrupt.o gsi.o gsi_reg.o \
14+
gsi_trans.o ipa_gsi.o ipa_smp2p.o ipa_uc.o \
1215
ipa_endpoint.o ipa_cmd.o ipa_modem.o \
1316
ipa_resource.o ipa_qmi.o ipa_qmi_msg.o \
1417
ipa_sysfs.o
1518

19+
ipa-y += $(GSI_IPA_VERSIONS:%=reg/gsi_reg-v%.o)
20+
1621
ipa-y += $(IPA_VERSIONS:%=reg/ipa_reg-v%.o)
1722

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

0 commit comments

Comments
 (0)