netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Elder <elder@linaro.org>
To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com
Cc: horms@kernel.org, mka@chromium.org, andersson@kernel.org,
	quic_cpratapa@quicinc.com, quic_avuyyuru@quicinc.com,
	quic_jponduru@quicinc.com, quic_subashab@quicinc.com,
	elder@kernel.org, netdev@vger.kernel.org,
	linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH net-next v2 0/7] net: ipa: simplify device pointer access
Date: Fri,  1 Mar 2024 11:02:35 -0600	[thread overview]
Message-ID: <20240301170242.243703-1-elder@linaro.org> (raw)

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(-)

-- 
2.40.1


             reply	other threads:[~2024-03-01 17:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-01 17:02 Alex Elder [this message]
2024-03-01 17:02 ` [PATCH net-next v2 1/7] net: ipa: change ipa_interrupt_config() prototype Alex Elder
2024-03-01 17:02 ` [PATCH net-next v2 2/7] net: ipa: introduce ipa_interrupt_init() Alex Elder
2024-03-01 17:02 ` [PATCH net-next v2 3/7] net: ipa: pass a platform device to ipa_reg_init() Alex Elder
2024-03-01 17:02 ` [PATCH net-next v2 4/7] net: ipa: pass a platform device to ipa_mem_init() Alex Elder
2024-03-01 17:02 ` [PATCH net-next v2 5/7] net: ipa: pass a platform device to ipa_smp2p_irq_init() Alex Elder
2024-03-01 17:02 ` [PATCH net-next v2 6/7] net: ipa: pass a platform device to ipa_smp2p_init() Alex Elder
2024-03-01 17:02 ` [PATCH net-next v2 7/7] net: ipa: don't save the platform device Alex Elder
2024-03-04 11:50 ` [PATCH net-next v2 0/7] net: ipa: simplify device pointer access patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240301170242.243703-1-elder@linaro.org \
    --to=elder@linaro.org \
    --cc=andersson@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=elder@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mka@chromium.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=quic_avuyyuru@quicinc.com \
    --cc=quic_cpratapa@quicinc.com \
    --cc=quic_jponduru@quicinc.com \
    --cc=quic_subashab@quicinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).