net: ipa: support more versions for HOLB timer
authorAlex Elder <elder@linaro.org>
Mon, 16 Nov 2020 23:37:57 +0000 (17:37 -0600)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Nov 2020 23:53:48 +0000 (15:53 -0800)
commit6833a09673001f7767b1d61875cf84af6209c0ab
tree69bde3d12010455eb504c229043628da1de5dc97
parent5f87d77bb3bda034d234da1a8ade8ed41af175e0
net: ipa: support more versions for HOLB timer

IPA version 3.5.1 represents the timer used in avoiding head-of-line
blocking with a simple tick count.  IPA v4.2 changes that, instead
splitting the timer field into two parts (base and scale) to
represent the ticks in the timer period.

IPA v4.0 and IPA v4.1 use the same method as IPA v3.5.1.  Change the
test in ipa_reg_init_hol_block_timer_val() so the result is correct
for those versions as well.

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