net: ipa: don't configure IDLE_INDICATION on v3.1
authorCaleb Connolly <caleb.connolly@linaro.org>
Mon, 24 Oct 2022 23:48:50 +0000 (00:48 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Oct 2022 02:49:13 +0000 (19:49 -0700)
commit95a0396a0642d3c28b6cefdc76697e0b8f594825
treedc56effeff9e142245aeb4a9796d8d9aae8eba77
parent05a31b94af3226ee47dcb6802229a7a576105d47
net: ipa: don't configure IDLE_INDICATION on v3.1

IPA v3.1 doesn't support the IDLE_INDICATION_CFG register, this was
causing a harmless splat in ipa_idle_indication_cfg(), add a version
check to prevent trying to fetch this register on v3.1

Fixes: 6a244b75cfab ("net: ipa: introduce ipa_reg()")
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Tested-by: Jami Kettunen <jami.kettunen@somainline.org>
Link: https://lore.kernel.org/r/20221024234850.4049778-1-caleb.connolly@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_main.c