]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ipa: Fix decoding EV_PER_EE for IPA v5.0+
authorLuca Weiss <luca.weiss@fairphone.com>
Thu, 9 Apr 2026 08:13:32 +0000 (10:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 20:49:33 +0000 (13:49 -0700)
commit1335b903cf2e8aeaca87fd665683384c731ec941
tree639130d9e24a671de36a46620f52ac6c05f46d64
parentde08f9585692813bd41ee654fca0487664c4de30
net: ipa: Fix decoding EV_PER_EE for IPA v5.0+

Initially 'reg' and 'val' are assigned from HW_PARAM_2.

But since IPA v5.0+ takes EV_PER_EE from HW_PARAM_4 (instead of
NUM_EV_PER_EE from HW_PARAM_2), we not only need to re-assign 'reg' but
also read the register value of that register into 'val' so that
reg_decode() works on the correct value.

Fixes: f651334e1ef5 ("net: ipa: add HW_PARAM_4 GSI register")
Link: https://sashiko.dev/#/patchset/20260403-milos-ipa-v1-0-01e9e4e03d3e%40fairphone.com?part=2
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/20260409-ipa-fixes-v1-2-a817c30678ac@fairphone.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/gsi.c