From: David S. Miller Date: Sat, 19 Sep 2020 00:47:07 +0000 (-0700) Subject: Merge branch 'net-ipa-wake-up-system-on-RX-available' X-Git-Tag: v5.15~2655^2~213 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e43df14d6b436ca767676bc8e41506dc03c4d89;p=platform%2Fkernel%2Flinux-starfive.git Merge branch 'net-ipa-wake-up-system-on-RX-available' Alex Elder says: ==================== net: ipa: wake up system on RX available This series arranges for the IPA driver to wake up a suspended system if the IPA hardware has a packet to deliver to the AP. Version 2 replaced the first patch from version 1 with three patches, in response to David Miller's feedback. And based on Bjorn Andersson's feedback on version 2, this version reworks the tracking of IPA clock references. As a result, we no longer need a flag to determine whether a "don't' suspend" clock reference is held (though an bit in a bitmask is still used for a different purpose). In summary: - A refcount_t is used to track IPA clock references where an atomic_t was previously used. (This may go away soon as well, with upcoming work to implement runtime PM.) - We no longer track whether a special reference has been taken to avoid suspending IPA. - A bit in a bitmask is used to ensure we only trigger a system resume once per system suspend. And from the original series: - Suspending endpoints only occurs when suspending the driver, not when dropping the last clock reference. Resuming endpoints is also disconnected from starting the clock. - The IPA SUSPEND interrupt is now a wakeup interrupt. If it fires, it schedules a system resume operation. - The GSI interrupt is no longer a wakeup interrupt. ==================== Signed-off-by: David S. Miller --- 5e43df14d6b436ca767676bc8e41506dc03c4d89