Skip to content

net: ipa: simplify device pointer access

Alex Elder linux-arm-msm lkml netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 0 repliesApplied 7/7
  2. v17 patches 3 repliesSuperseded

Patches in v2 All 7 applied

#Subject and filesSizeRepliesApplied
1/7net: ipa: change ipa_interrupt_config() prototypedrivers/net/ipa/ipa_interrupt.c drivers/net/ipa/ipa_interrupt.h drivers/net/ipa/ipa_main.c+24 -240 repliesApplied
2/7net: ipa: introduce ipa_interrupt_init()drivers/net/ipa/ipa_interrupt.c drivers/net/ipa/ipa_interrupt.h drivers/net/ipa/ipa_main.c+68 -190 repliesApplied
3/7net: ipa: pass a platform device to ipa_reg_init()drivers/net/ipa/ipa_main.c drivers/net/ipa/ipa_reg.c drivers/net/ipa/ipa_reg.h+8 -60 repliesApplied
4/7net: ipa: pass a platform device to ipa_mem_init()drivers/net/ipa/ipa_main.c drivers/net/ipa/ipa_mem.c drivers/net/ipa/ipa_mem.h+12 -80 repliesApplied
5/7net: ipa: pass a platform device to ipa_smp2p_irq_init()drivers/net/ipa/ipa_smp2p.c+9 -70 repliesApplied
6/7net: ipa: pass a platform device to ipa_smp2p_init()drivers/net/ipa/ipa_main.c drivers/net/ipa/ipa_smp2p.c drivers/net/ipa/ipa_smp2p.h+11 -80 repliesApplied
7/7net: ipa: don't save the platform devicedrivers/net/ipa/ipa.h drivers/net/ipa/ipa_cmd.c drivers/net/ipa/ipa_endpoint.c +9 more+73 -790 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net-next v2 0/7] net: ipa: simplify device pointer access

This version of this patch series fixes the bugs in the first patch (which were fixed in the second), where ipa_interrupt_config() had two remaining spots that returned a pointer rather than an integer.

Outside of initialization, all uses of the platform device pointer stored in the IPA structure determine the address of device structure embedded within the platform device structure.

By changing some of the initialization functions to take a platform device as argument we can simplify getting at the device structure address by storing it (instead of the platform device pointer) in the IPA structure.

The first two patches split the interrupt initialization code into two parts--one done earlier than before. The next four patches update some initialization functions to take a platform device pointer as argument. And the last patch replaces the platform device pointer with a device pointer, and converts all remaining references to the &ipa->pdev->dev to use ipa->dev.

-Alex

Alex Elder (7):
net: ipa: change ipa_interrupt_config() prototype
net: ipa: introduce ipa_interrupt_init()
net: ipa: pass a platform device to ipa_reg_init()
net: ipa: pass a platform device to ipa_mem_init()
net: ipa: pass a platform device to ipa_smp2p_irq_init()
net: ipa: pass a platform device to ipa_smp2p_init()
net: ipa: don't save the platform device

 drivers/net/ipa/ipa.h           |  5 +--
 drivers/net/ipa/ipa_cmd.c       |  6 +--
 drivers/net/ipa/ipa_endpoint.c  | 29 +++++++-------
 drivers/net/ipa/ipa_interrupt.c | 69 +++++++++++++++++++++------------
 drivers/net/ipa/ipa_interrupt.h | 22 +++++++++--
 drivers/net/ipa/ipa_main.c      | 60 +++++++++++++++++-----------
 drivers/net/ipa/ipa_mem.c       | 37 +++++++++---------
 drivers/net/ipa/ipa_mem.h       |  5 ++-
 drivers/net/ipa/ipa_modem.c     | 14 +++----
 drivers/net/ipa/ipa_power.c     |  4 +-
 drivers/net/ipa/ipa_qmi.c       | 10 ++---
 drivers/net/ipa/ipa_reg.c       |  8 ++--
 drivers/net/ipa/ipa_reg.h       |  4 +-
 drivers/net/ipa/ipa_smp2p.c     | 33 ++++++++--------
 drivers/net/ipa/ipa_smp2p.h     |  7 +++-
 drivers/net/ipa/ipa_table.c     | 18 ++++-----
 drivers/net/ipa/ipa_uc.c        |  9 ++---
 17 files changed, 197 insertions(+), 143 deletions(-)
Signature · 1 line
2.40.1