]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit46db148524d7e161d0d2a365f739e3ac37868433
tree2aff693fa52ae8a2d6e497ae1456696b67193c5f
parent9c6dee2b5f4ea0fc249e51bd59891c2b3e5eec05
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