aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorAlex Elder <[email protected]>2021-08-10 19:27:03 +0000
committerDavid S. Miller <[email protected]>2021-08-11 12:31:56 +0000
commita71aeff3dd0a7d127967d42a86b42b0aa21a90dc (patch)
tree774545c4c9c8f251739107eff6be2d61a5650a4c /drivers/usb/cdns3/cdns3-debug.h
parentnet: ipa: get rid of extra clock reference (diff)
downloadkernel-a71aeff3dd0a7d127967d42a86b42b0aa21a90dc.tar.gz
kernel-a71aeff3dd0a7d127967d42a86b42b0aa21a90dc.zip
net: ipa: kill IPA clock reference count
The runtime power management core code maintains a usage count. This count mirrors the IPA clock reference count, and there's no need to maintain both. So get rid of the IPA clock reference count and just rely on the runtime PM usage count to determine when the hardware should be suspended or resumed. Use pm_runtime_get_if_active() in ipa_clock_get_additional(). We care whether power is active, regardless of whether it's in use, so pass true for its ign_usage_count argument. The IPA clock mutex is just used to make enabling/disabling the clock and updating the reference count occur atomically. Without the reference count, there's no need for the mutex, so get rid of that too. Signed-off-by: Alex Elder <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions