]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: don't use ipa_clock_get() in "ipa_uc.c"
authorAlex Elder <elder@linaro.org>
Thu, 19 Aug 2021 22:19:25 +0000 (17:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Aug 2021 13:45:47 +0000 (14:45 +0100)
commit6fd6003be4c0924359906816bf21ee428f969784
treefb55676a476039ef67d8e3907c723b610f5cf51c
parentba46deee5e9d7975debac211149f6be494dd592e
net: ipa: don't use ipa_clock_get() in "ipa_uc.c"

Replace the ipa_clock_get() call in ipa_uc_clock() when taking the
"proxy" clock reference for the microcontroller with a call to
pm_runtime_get_sync().  Replace calls of ipa_clock_put() for the
microcontroller with pm_runtime_put() calls instead.

There is a chance we get an error when taking the microcontroller
power reference.  This is an unlikely scenario, where system suspend
is initiated just before we learn the modem is booting.  For now
we'll just accept that this could occur, and report it if it does.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_uc.c