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)
commit799c5c24b7acc8af0086f1cbff5be3af7f63f6f1
treefb55676a476039ef67d8e3907c723b610f5cf51c
parentc43adc75dc2dee8cc5a29a722c1c1d5a00b434c3
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