1. 11 Aug, 2021 3 commits
    • Alex Elder's avatar
      net: ipa: disable clock in suspend · 1016c6b8
      Alex Elder authored
      Disable the IPA clock rather than dropping a reference to it in the
      system suspend callback.  This forces the suspend to occur without
      affecting existing references.
      
      Similarly, enable the clock rather than taking a reference in
      ipa_resume(), forcing a resume without changing the reference count.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1016c6b8
    • Alex Elder's avatar
      net: ipa: have ipa_clock_get() return a value · 7ebd168c
      Alex Elder authored
      We currently assume no errors occur when enabling or disabling the
      IPA core clock and interconnects.  And although this commit exposes
      errors that could occur, we generally assume this won't happen in
      practice.
      
      This commit changes ipa_clock_get() and ipa_clock_put() so each
      returns a value.  The values returned are meant to mimic what the
      runtime power management functions return, so we can set up error
      handling here before we make the switch.  Have ipa_clock_get()
      increment the reference count even if it returns an error, to match
      the behavior of pm_runtime_get().
      
      More details follow.
      
      When taking a reference in ipa_clock_get(), return 0 for the first
      reference, 1 for subsequent references, or a negative error code if
      an error occurs.  Note that if ipa_clock_get() returns an error, we
      must not touch hardware; in some cases such errors now cause entire
      blocks of code to be skipped.
      
      When dropping a reference in ipa_clock_put(), we return 0 or an
      error code.  The error would come from ipa_clock_disable(), which
      now returns what ipa_interconnect_disable() returns (either 0 or a
      negative error code).  For now, callers ignore the return value;
      if an error occurs, a message will have already been logged, and
      little more can actually be done to improve the situation.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7ebd168c
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next · 6f45933d
      David S. Miller authored
      Pablo Neira Ayuso says:
      
      ====================
      Netfilter updates for net-next
      
      The following patchset contains Netfilter updates for net-next:
      
      1) Use nfnetlink_unicast() instead of netlink_unicast() in nft_compat.
      
      2) Remove call to nf_ct_l4proto_find() in flowtable offload timeout
         fixup.
      
      3) CLUSTERIP registers ARP hook on demand, from Florian.
      
      4) Use clusterip_net to store pernet warning, also from Florian.
      
      5) Remove struct netns_xt, from Florian Westphal.
      
      6) Enable ebtables hooks in initns on demand, from Florian.
      
      7) Allow to filter conntrack netlink dump per status bits,
         from Florian Westphal.
      
      8) Register x_tables hooks in initns on demand, from Florian.
      
      9) Remove queue_handler from per-netns structure, again from Florian.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6f45933d
  2. 10 Aug, 2021 20 commits
  3. 09 Aug, 2021 17 commits