net: ipa: encapsulate updating the COUNTER_CFG register
authorAlex Elder <elder@linaro.org>
Thu, 22 Sep 2022 22:20:59 +0000 (17:20 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 24 Sep 2022 03:56:28 +0000 (20:56 -0700)
commit1e5db0965ef5199f360138a81652fef7bc12fcb4
tree2aff693fa52ae8a2d6e497ae1456696b67193c5f
parentb24627b1d9b25e3a4c96bd467bce7667ca119910
net: ipa: encapsulate updating the COUNTER_CFG register

Create a new function that encapsulates setting the counter
configuration register value for versions prior to IPA v4.5.
Create another small function to represent configuring hardware
timing regardless of version.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_main.c