]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: add a clock reference for netdev operations
authorAlex Elder <elder@linaro.org>
Tue, 27 Jul 2021 21:19:32 +0000 (16:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jul 2021 23:06:27 +0000 (00:06 +0100)
commit83c5ad9b897860c5b3b07378a0f86c9b4de8d7ed
tree74e43f916d752745dd34f7b1e488140bebc53671
parentaf3f90f2d9865ff31364ad3ad9e4535bf72e223c
net: ipa: add a clock reference for netdev operations

The IPA network device can be opened at any time, and an opened
network device can be stopped any time.  Both of these callback
functions require access to the hardware, and therefore they need
the IPA clock to be operational.  Take an IPA clock reference in
both the ->open and ->stop callback functions, dropping the
reference when they are done accessing hardware.

The ->start_xmit callback requires a little different handling,
and that will be added separately.

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