mbox series

[net-next,0/6] net: ipa: don't abort system suspend

Message ID 20240223133930.582041-1-elder@linaro.org
Headers show
Series net: ipa: don't abort system suspend | expand

Message

Alex Elder Feb. 23, 2024, 1:39 p.m. UTC
Currently the IPA code aborts an in-progress system suspend if an
IPA interrupt arrives before the suspend completes.  There is no
need to do that though, because the IPA driver handles a forced
suspend correctly, quiescing any hardware activity before finally 
turning off clocks and interconnects.

This series drops the call to pm_wakeup_dev_event() if an IPA
SUSPEND interrupt arrives during system suspend.  Doing this
makes the two remaining IPA power flags unnecessary, and allows
some additional code to be cleaned up--and best of all, removed.
The result is much simpler (and I'm really glad not to be using
these flags any more).

The first patch implements the main change.  The second and
third remove the flags that were used to determine whether to
call pm_wakeup_dev_event().  The next two remove a function that
becomes a trivial wrapper, and the last one just avoids writing
a register unnecessarily.

Note that the first two patches will have checkpatch warnings,
because checkpatch disagrees with my compiler on what to do when
a block contains only a semicolon.  I went with what the compiler
recommends.

clang says: warning: suggest braces around empty body
checkpatch: WARNING: braces {} are not necessary for single statement blocks

					-Alex

Alex Elder (6):
  net: ipa: don't bother aborting system resume
  net: ipa: kill IPA_POWER_FLAG_SYSTEM
  net: ipa: kill the IPA_POWER_FLAG_RESUMED flag
  net: ipa: move ipa_interrupt_suspend_clear_all() up
  net: ipa: kill ipa_power_suspend_handler()
  net: ipa: don't bother zeroing an already zero register

 drivers/net/ipa/ipa_interrupt.c | 50 ++++++++++++++++-----------------
 drivers/net/ipa/ipa_interrupt.h |  8 ------
 drivers/net/ipa/ipa_power.c     | 33 ----------------------
 drivers/net/ipa/ipa_power.h     | 11 --------
 4 files changed, 25 insertions(+), 77 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Feb. 27, 2024, 10:30 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Fri, 23 Feb 2024 07:39:24 -0600 you wrote:
> Currently the IPA code aborts an in-progress system suspend if an
> IPA interrupt arrives before the suspend completes.  There is no
> need to do that though, because the IPA driver handles a forced
> suspend correctly, quiescing any hardware activity before finally
> turning off clocks and interconnects.
> 
> This series drops the call to pm_wakeup_dev_event() if an IPA
> SUSPEND interrupt arrives during system suspend.  Doing this
> makes the two remaining IPA power flags unnecessary, and allows
> some additional code to be cleaned up--and best of all, removed.
> The result is much simpler (and I'm really glad not to be using
> these flags any more).
> 
> [...]

Here is the summary with links:
  - [net-next,1/6] net: ipa: don't bother aborting system resume
    https://git.kernel.org/netdev/net-next/c/4b2274d3811a
  - [net-next,2/6] net: ipa: kill IPA_POWER_FLAG_SYSTEM
    https://git.kernel.org/netdev/net-next/c/54f19ff7676f
  - [net-next,3/6] net: ipa: kill the IPA_POWER_FLAG_RESUMED flag
    https://git.kernel.org/netdev/net-next/c/dae5d6e8f0ec
  - [net-next,4/6] net: ipa: move ipa_interrupt_suspend_clear_all() up
    https://git.kernel.org/netdev/net-next/c/ef63ca78da2e
  - [net-next,5/6] net: ipa: kill ipa_power_suspend_handler()
    https://git.kernel.org/netdev/net-next/c/423df2e09d3b
  - [net-next,6/6] net: ipa: don't bother zeroing an already zero register
    https://git.kernel.org/netdev/net-next/c/f9345952e74a

You are awesome, thank you!