]> git.itanic.dy.fi Git - linux-stable/commit
net: ipa: greater timer granularity options
authorAlex Elder <elder@linaro.org>
Mon, 30 Jan 2023 21:01:56 +0000 (15:01 -0600)
committerJakub Kicinski <kuba@kernel.org>
Wed, 1 Feb 2023 05:45:52 +0000 (21:45 -0800)
commit32079a4ab10668a28535747399a5d8a527e775dd
tree5d83e4524428c25cbe7b62a32811499f00a7d1d4
parenta08cedc31d50b698c2e36a08c5a69a42d73313c9
net: ipa: greater timer granularity options

Starting with IPA v5.0, the head-of-line blocking timer has more
than two pulse generators available to define timer granularity.
To prepare for that, change the way the field value is encoded
to use ipa_reg_encode() rather than ipa_reg_bit().

The aggregation granularity selection could (in principle) also use
an additional pulse generator starting with IPA v5.0.  Encode the
AGGR_GRAN_SEL field differently to allow that as well.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_endpoint.c