netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/7] net: ipa: simplify device pointer access
@ 2024-02-29 20:55 Alex Elder
  2024-02-29 20:55 ` [PATCH net-next 1/7] net: ipa: change ipa_interrupt_config() prototype Alex Elder
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Alex Elder @ 2024-02-29 20:55 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni
  Cc: mka, andersson, quic_cpratapa, quic_avuyyuru, quic_jponduru,
	quic_subashab, elder, netdev, linux-arm-msm, linux-kernel

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 | 64 +++++++++++++++++++++------------
 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, 193 insertions(+), 142 deletions(-)

-- 
2.40.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-03-04 16:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-29 20:55 [PATCH net-next 0/7] net: ipa: simplify device pointer access Alex Elder
2024-02-29 20:55 ` [PATCH net-next 1/7] net: ipa: change ipa_interrupt_config() prototype Alex Elder
2024-03-01 16:26   ` Simon Horman
2024-03-01 16:37     ` Alex Elder
2024-03-04 16:24       ` Simon Horman
2024-02-29 20:55 ` [PATCH net-next 2/7] net: ipa: introduce ipa_interrupt_init() Alex Elder
2024-02-29 20:55 ` [PATCH net-next 3/7] net: ipa: pass a platform device to ipa_reg_init() Alex Elder
2024-02-29 20:55 ` [PATCH net-next 4/7] net: ipa: pass a platform device to ipa_mem_init() Alex Elder
2024-02-29 20:55 ` [PATCH net-next 5/7] net: ipa: pass a platform device to ipa_smp2p_irq_init() Alex Elder
2024-02-29 20:55 ` [PATCH net-next 6/7] net: ipa: pass a platform device to ipa_smp2p_init() Alex Elder
2024-02-29 20:55 ` [PATCH net-next 7/7] net: ipa: don't save the platform device Alex Elder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).