[PATCH net-next 0/8] net: ipa: another set of cleanups

From: Alex Elder
Date: Thu Sep 22 2022 - 18:21:19 EST


This series contains another set of cleanups done in preparation for
an upcoming series that reworks how IPA registers and their fields
are defined.

The first replaces the use of u32_replace_bits() with a simple
logical AND operation in two places.

The second creates a new function to encapsulate some common code,
and renames another for consistency. The third restructures two
other functions that do similar things to make their similarity more
obvious.

The fourth defines the flag bits in a register using an enumerated
type. And the fifth updates "ipa_reg.h" so the values assigned to
enumerated type members are aligned consistently.

The last three encapsulate the code that assigns values to a few
registers into separate functions.

-Alex

Alex Elder (8):
net: ipa: don't use u32p_replace_bits()
net: ipa: introduce ipa_qtime_val()
net: ipa: rearrange functions for similarity
net: ipa: define BCR values using an enum
net: ipa: tidy up register enum definitions
net: ipa: encapsulate setting the FILT_ROUT_HASH_EN register
net: ipa: encapsulate updating the COUNTER_CFG register
net: ipa: encapsulate updating three more registers

drivers/net/ipa/data/ipa_data-v3.1.c | 2 +-
drivers/net/ipa/data/ipa_data-v3.5.1.c | 10 +-
drivers/net/ipa/ipa_endpoint.c | 138 +++++++++++++------------
drivers/net/ipa/ipa_main.c | 135 +++++++++++++++---------
drivers/net/ipa/ipa_reg.h | 68 ++++++------
drivers/net/ipa/ipa_table.c | 4 +-
6 files changed, 200 insertions(+), 157 deletions(-)

--
2.34.1